#5830: ModelChoiceField does not allow you to change the queryset on the widget
after __init__ is called
-----------------------------------------------+----------------------------
Reporter: Øyvind Saltvik <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component: Uncategorized
Version: newforms-admin | Keywords: modelchoicefield
property
Stage: Unreviewed | Has_patch: 1
-----------------------------------------------+----------------------------
!ModelChoiceField.!__init!__ assigns the default queryset to
self.widget.choices; then if you change field.queryset later it is too
late, as it does not set self.widget.choices again.
This is easily done by making self.queryset a property()
--
Ticket URL: <http://code.djangoproject.com/ticket/5830>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---