Skip to content

Rummage Portal field has wrong field type #4607

Description

@joemull

Problem

When I want to filter supporters by country, the filter is not applied.

This is because the widget provides multiple choices, but the form field is a single choice field:

self.fields[facet_key] = forms.ChoiceField(
widget=forms.widgets.CheckboxSelectMultiple,
choices=choices,
required=False,
)

As a result the data is misaligned when the form is validated.

Proposed solution

Use MultipleChoiceField.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions