#27563: Move "Apply limit_choices_to" code from BaseModelForm to 
fields_for_model()
--------------------------------------+------------------------------------
     Reporter:  Jon Dufresne          |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Forms                 |                  Version:  1.11
     Severity:  Release blocker       |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Simon Charette):

 It looks like something is wrong with
 
[https://github.com/django/django/blob/e7033e00f8e1ba2ffe538e56c5088a7e94c2e45d/django/forms/models.py#L1158
 ModelChoiceField.__deepcopy__()], it should be assigning
 `self.queryset.all()` to make sure `_result_cache` isn't shared between
 instances.

--
Ticket URL: <https://code.djangoproject.com/ticket/27563#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/067.c34b626bdc068340da50856da74e9c05%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to