--
Ticket URL: <https://code.djangoproject.com/ticket/29814>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 1 => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29814#comment:1>
* status: new => assigned
* owner: nobody => Patrik Sletmo
Comment:
I've managed to reproduce the issue and will attempt to provide a patch
later this week. If anyone is interested in reproducing the issue on their
own, the following code generates a problematic migration:
{{{
from django.db import models
from django.utils.deconstruct import deconstructible
@deconstructible
class SerializableClass:
def __init__(self, foo):
self.foo = foo
class DemoModel(models.Model):
problematic_field =
models.Field(default=SerializableClass(type(None)))
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29814#comment:2>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29814#comment:3>
* version: 2.1 => master
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29814#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"adfdb9f1695d8710456b54282fcc6f306fc918c0" adfdb9f1]:
{{{
#!CommitTicketReference repository=""
revision="adfdb9f1695d8710456b54282fcc6f306fc918c0"
Fixed #29814 -- Added support for NoneType serialization in migrations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29814#comment:5>