[Django] #25764: Support serialization of enum.Enum instances

35 views
Skip to first unread message

Django

unread,
Nov 16, 2015, 2:40:47 PM11/16/15
to django-...@googlegroups.com
#25764: Support serialization of enum.Enum instances
-----------------------------+---------------------------------------------
Reporter: andreif | Owner: andreif
Type: New feature | Status: new
Component: Migrations | Version: master
Severity: Normal | Keywords: migrations, serialization, enum
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Allow serialization of native enum and using it in field arguments incl.
default and choices.

--
Ticket URL: <https://code.djangoproject.com/ticket/25764>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 16, 2015, 2:41:46 PM11/16/15
to django-...@googlegroups.com
#25764: Support serialization of enum.Enum instances
-------------------------------------+-------------------------------------
Reporter: andreif | Owner: andreif
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: migrations, | Triage Stage:
serialization, enum | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by andreif):

* status: new => assigned
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0


Old description:

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

New description:

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

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

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25764#comment:1>

Django

unread,
Nov 16, 2015, 3:01:30 PM11/16/15
to django-...@googlegroups.com
#25764: Support serialization of enum.Enum instances in migrations
-------------------------------------+-------------------------------------
Reporter: andreif | Owner: andreif
Type: New feature | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: migrations, | Triage Stage: Accepted
serialization, enum |

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Unreviewed => Accepted


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/25764#comment:2>

Django

unread,
Nov 16, 2015, 3:04:30 PM11/16/15
to django-...@googlegroups.com
#25764: Support serialization of enum.Enum instances in migrations
-------------------------------------+-------------------------------------
Reporter: andreif | Owner: andreif
Type: New feature | Status: assigned
Component: Migrations | Version: master

Severity: Normal | Resolution:
Keywords: migrations, | Triage Stage: Accepted
serialization, enum |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by andreif):

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

--
Ticket URL: <https://code.djangoproject.com/ticket/25764#comment:3>

Django

unread,
Nov 19, 2015, 5:22:23 PM11/19/15
to django-...@googlegroups.com
#25764: Support serialization of enum.Enum instances in migrations
-------------------------------------+-------------------------------------
Reporter: andreif | Owner: andreif
Type: New feature | Status: closed
Component: Migrations | Version: master
Severity: Normal | Resolution: fixed

Keywords: migrations, | Triage Stage: Accepted
serialization, enum |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"998894e1b9f5a8715f4cac5f6201b5e9ac80510c" 998894e]:
{{{
#!CommitTicketReference repository=""
revision="998894e1b9f5a8715f4cac5f6201b5e9ac80510c"
Fixed #25764 -- Added support for serialization of enum.Enum in
migrations.

Thanks Tim Graham for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25764#comment:4>

Reply all
Reply to author
Forward
0 new messages