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
# my_app/view.pyfromautocompleteimportwidgetsfromdjango.shortcutsimportrender# class MultipleFormModel ...defindex(request):
form=MultipleFormModel(request.GET)
returnrender(request, "base.html", {"form": form})
If I call the with http://localhost:8000/?name=Foo&members= (empty member list) I get an unexpected exception.
If I create the ModelForm without the AutoComplete widget I only get the error message that "" is not a valid value.
It seems to me, that it is not sufficient to check if values is not None
The text was updated successfully, but these errors were encountered:
Hi,
I played around with your example.
I created a view:
If I call the with
http://localhost:8000/?name=Foo&members=
(empty member list) I get an unexpected exception.If I create the ModelForm without the
AutoComplete
widget I only get the error message that"" is not a valid value
.It seems to me, that it is not sufficient to check
if values is not None
The text was updated successfully, but these errors were encountered: