#31262: Support dictionaries in Field.choices for named groups.
-------------------------------------+-------------------------------------
     Reporter:  Tom Forbes           |                    Owner:  Nick Pope
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Natalia <124304+nessita@…>):

 In [changeset:"711c0547224de00aee39b8720c706ac4977e89fd" 711c054]:
 {{{
 #!CommitTicketReference repository=""
 revision="711c0547224de00aee39b8720c706ac4977e89fd"
 [5.0.x] Refs #31262 -- Added __eq__() and __getitem__() to
 BaseChoiceIterator.

 This makes it easier to work with lazy iterators used for callables,
 etc. when extracting items or comparing to lists, e.g. during testing.

 Also added `BaseChoiceIterator.__iter__()` to make it clear that
 subclasses must implement this and added `__all__` to the module.

 Co-authored-by: Adam Johnson <[email protected]>
 Co-authored-by: Natalia Bidart <[email protected]>

 Backport of 07fa79ef2bb3e8cace7bd87b292c6c85230eed05 from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31262#comment:18>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b5dab383b-e2ce8f33-6867-44a3-abad-4c7d6490dbc5-000000%40eu-central-1.amazonses.com.

Reply via email to