#28345: limit_choices_to callable is no longer applied during ModelForm
instantiation which blocks some use cases
---------------------------------+----------------------------------------
     Reporter:  drunkard         |                    Owner:  Jon Dufresne
         Type:  Bug              |                   Status:  closed
    Component:  Forms            |                  Version:  1.11
     Severity:  Release blocker  |               Resolution:  fixed
     Keywords:  ModelForm        |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+----------------------------------------
Changes (by Jon Dufresne <jon.dufresne@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a1be12fe193c8f3de8a0b0820f460a302472375f" a1be12fe]:
 {{{
 #!CommitTicketReference repository=""
 revision="a1be12fe193c8f3de8a0b0820f460a302472375f"
 Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().

 field_for_model() now has an additional keyword argument,
 apply_limit_choices_to, allowing it to continue to be used to create
 form fields dynamically after ModelForm.__init__() is called.

 Thanks Tim Graham for the review.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28345#comment:5>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.d56e6ee1cd7752bf897f0cf2976cb277%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to