jazzband / jazzband/django-floppyforms
CheckboxSelectMultiple fails when the queryset is empty
Open
- Dominant language
- Python
- Stars
- 836
- Forks
- 150
- PR merge metrics
- No merged PRs in 30d
Description
With the following in forms.py
from django.forms.widgets import CheckboxSelectMultiple
forms.ModelMultipleChoiceField(queryset=None, widget=CheckboxSelectMultiple())
The widget fails to load for an emptyqueryset
Thanks
Contributor guide
Research direction
Start with the forms.py example using ModelMultipleChoiceField(queryset=None, widget=CheckboxSelectMultiple()) and trace how CheckboxSelectMultiple handles an empty queryset. Confirm the widget loads successfully for that case without the reported failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100