#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:"07fa79ef2bb3e8cace7bd87b292c6c85230eed05" 07fa79ef]:
 {{{
 #!CommitTicketReference repository=""
 revision="07fa79ef2bb3e8cace7bd87b292c6c85230eed05"
 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]>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31262#comment:17>
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/0107018b5da3afc5-5f3f6c67-0056-4dab-99ec-82f34e4c81ae-000000%40eu-central-1.amazonses.com.

Reply via email to