#24483: keepdb migrations break choices as generators
-------------------------------------+-------------------------------------
     Reporter:  davidszotten         |                    Owner:
                                     |  davidszotten
         Type:  Bug                  |                   Status:  assigned
    Component:  Migrations           |                  Version:  1.8beta2
     Severity:  Normal               |               Resolution:
     Keywords:  migrations test      |             Triage Stage:
  keepdb                             |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by jarshwah):

 I'm not so sure that django really supports the use of generators for
 choices. The docs do say "An iterable (e.g., a list or tuple) consisting
 itself of iterables of exactly two items (e.g. [(A, B), (A, B) ...])"
 which a generator is, but I can't see the value in having it as a
 generator in the first place as it's going to be consumed in its entirety
 fairly quickly in the load process.

 Does this even work on a live website? If yes, then we should probably fix
 it. But I doubt we'd mark it as a release blocker due to the necessary
 combinations of actually triggering the problem (the impact is small).

--
Ticket URL: <https://code.djangoproject.com/ticket/24483#comment:2>
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/070.d446d50ed6bb36da30ce81e441108c41%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to