django-smart-selects ModelForm Issue

57 views
Skip to first unread message

Venkatraman S

unread,
May 7, 2014, 3:26:58 AM5/7/14
to django...@googlegroups.com
Hi,

In the context of using django-smart-selects : as anyone stumbled on an issue with a Model using ChainedFK and if the queryset of chained_field in the ModelForm is changed before  rendering? 

ie., if person is the chained_field in my form and I changed its queryset before rendering as follows, then the dependent dropdowns do not get populated while the form is rendered.

form.fields['person'].queryset = this_dept.get_persons()

regards,
Venkat
Reply all
Reply to author
Forward
0 new messages