Opened 9 years ago

Closed 9 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 by Andrei Fokau, 9 years ago

Description: modified (diff)
Status: newassigned

comment:2 by Tim Graham, 9 years ago

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 by Andrei Fokau, 9 years ago

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 by Tim Graham <timograham@…>, 9 years ago

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