#24470: Serialization of base classes is not customizable for migrations
-------------------------------+--------------------------------------
     Reporter:  rockymeza      |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Migrations     |                  Version:  1.7
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by gavinwahl):

 There are several problems with doing that.

 - The `__module__` of MyMixin will be the `__module__` of
 model_mixin_factory, not the module were MyMixin was created.
 - model_mixin_factory needs to remain backwards compatible. Changing the
 signature would break existing code, and there is existing code that uses
 it without assigning it to a module-level variable
 - It's ugly to specify the name twice

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.6e76094124f2db0793caca2f6e1db6e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to