You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, can you post the exact error message you get?
I think you should use MyModel.objects.all().none() which will return a proper empty queryset. None is not a queryset and therefore unexpected as the parameter.
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
The text was updated successfully, but these errors were encountered: