Opened 7 years ago

Closed 7 years ago

#25764 closed New feature (fixed)

Support serialization of enum.Enum instances in migrations

Reported by: Andrei Fokau Owned by: Andrei Fokau
Component: Migrations Version: dev
Severity: Normal Keywords: migrations, serialization, enum
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Andrei Fokau)

Allow serialization of native enum and using it in field arguments incl. default and choices.

https://github.com/django/django/pull/5672

Change History (4)

comment:1 Changed 7 years ago by Andrei Fokau

Description: modified (diff)
Status: newassigned

comment:2 Changed 7 years ago by Tim Graham

Summary: Support serialization of enum.Enum instancesSupport serialization of enum.Enum instances in migrations
Triage Stage: UnreviewedAccepted

By the way, there's a ticket about adding a native EnumField (#24342).

comment:3 Changed 7 years ago by Andrei Fokau

Ah, cool, we are actually working on a similar thing with a huge help by @fcurella https://github.com/5monkeys/django-enumfield/pull/26

comment:4 Changed 7 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 998894e:

Fixed #25764 -- Added support for serialization of enum.Enum in migrations.

Thanks Tim Graham for the review.

Note: See TracTickets for help on using tickets.
Back to Top