jazzband / jazzband/django-floppyforms

CheckboxSelectMultiple fails when the queryset is empty

Open
#162 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.