I get this error when I use a ModelChoiceFilter Select a valid choice. That choice is not one of the available choices

204 views
Skip to first unread message

DAWSON Steve

unread,
Jan 8, 2015, 5:59:58 AM1/8/15
to django...@googlegroups.com


I am trying to let the user select a location to filter the house he want . I was able to populate the select field from the database but when I select a location I always get 
this error  I get this error when I use a ModelChoiceFilter Select a valid choice. That choice is not one of the available choices
filters.py

Carlton Gibson

unread,
Jan 8, 2015, 9:00:36 AM1/8/15
to django...@googlegroups.com
Hi Steve. 

I can't see your issue from the code provided. Can you provide more detail? Perhaps a traceback...

DAWSON Steve

unread,
Jan 10, 2015, 2:53:41 PM1/10/15
to django...@googlegroups.com
I solve the issue thanks. but is there any way to customize the forms generated by django filter i would like to add placeholder to the input text if possible
Reply all
Reply to author
Forward
0 new messages