#15950: Allow ChoiceField and friends to take a callable for choices kwarg
-----------------------------+-----------------------------------------
     Reporter:  jdunck       |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Milestone:               |                Component:  Uncategorized
      Version:  1.3          |                 Severity:  Normal
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |
-----------------------------+-----------------------------------------
 Sometimes we'd like choices to be dynamic (often the result of an ORM
 query), but because models are declarative, this forces queries to run
 with Django partially loaded.

 It would be good to be able to make choices a callable so that these
 queries could be deferred until Django is fully loaded.

 I'm attaching a rough patch; if this passes design-decision, I can polish
 it up with tests.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15950>
Django <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.

Reply via email to