Opened 11 years ago

Closed 11 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, 11 years ago

Description: modified (diff)
Status: new → assigned

comment:2 by Tim Graham, 11 years ago

Summary: Support serialization of enum.Enum instances → Support serialization of enum.Enum instances in migrations
Triage Stage: Unreviewed → Accepted

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

comment:3 by Andrei Fokau, 11 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@…>, 11 years ago

Resolution: → fixed
Status: assigned → closed

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