Changes between Initial Version and Version 1 of Ticket #31261


Ignore:
Timestamp:
Feb 12, 2020, 12:53:03 AM (5 years ago)
Author:
Mariusz Felisiak
Comment:

Thanks for this ticket, however I'm not sure if that's feasible because we support subclasses of Choices for a data type other that int or str (see examples). This can be break backward compatibility. I would be very happy to evaluate a patch, but without breaking a current behavior.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31261

    • Property Resolutionneedsinfo
    • Property Status newclosed
    • Property Summary Add support for defining Enum fields with dict, tuple, set and list valuesAdd support for defining models.Choices fields with dict, tuple, set and list values.
  • Ticket #31261 – Description

    initial v1  
    77
    88{{{
    9 class MoonMissions(Enum):
     9class MoonMissions(models.IntegerChoices):
    1010    APOLLO_10 = 1
    1111    APOLLO_11 = 2
Back to Top