#25068: Metaclass conflict when doing createmigrations in ModelState.render
-------------------------------------+-------------------------------------
Reporter: kosz85 | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Resolution:
Keywords: metaclass conflict | Triage Stage: Accepted
createmigrations |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Yingtong Li):
It looks like it's been a while since there was any movement in this
ticket, but I've just encountered this issue myself (Django 1.10.4).
kosz85's patches were not sufficient for my use case, as my metaclass
influenced the database structure of the Model, and so needed to be used
rather than merely emulated.
I have put together some quick changes along the lines of Loic Bistuer's
suggestions, which are sufficient for my needs:
https://github.com/django/django/compare/master...RunasSudo:migrations-
with-metaclasses?expand=1
However, more work would be required to implement the rest of the
functionality and fully complete the integration of the changes with the
rest of Django, and I do not have the confidence in my own ability to do
so. Hopefully these changes may form the foundation for further changes if
anyone plans further work on this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/25068#comment:28>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.4016e60342c3612e33dd55cc3bdd1491%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.