#15950: Allow ChoiceField and friends to take a callable for choices kwarg
---------------------------------------+------------------------
               Reporter:  jdunck       |          Owner:  nobody
                   Type:  New feature  |         Status:  new
              Milestone:               |      Component:  Forms
                Version:  1.3          |       Severity:  Normal
             Resolution:               |       Keywords:
           Triage Stage:  Accepted     |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
---------------------------------------+------------------------

Comment (by jdunck):

 Hmm, writing a generator to do a query only on the first execution of the
 generator is a little fiddly.  (If there's a nice way to write it, please
 give an example.)

 There's a common pattern of accepting callables - maybe we should add
 callable to model choices, too?

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