Replies: 4 comments
|
Still present in version polymorphic v.3.0.0, Django v.3.2.5, python 3.9 |
0 replies
|
Same problem with v3.1.0 and Django 3.2.16 |
0 replies
|
Just in case someone else face the same issue here a workaround: https://gist.github.com/BaronKimaru/a1b16177d416a39ff45ac56c104dafd7 TLDR: manually edit you migration file and comment out |
0 replies
|
@marnanel This is an upstream issue with Django that applies to normal multi-table models, not specific to django-polymorphic. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Renaming a superclass causes "manage.py migrate" to produce invalid SQL. It attempts to copy zero columns from the old model to the updated model.
Tested using cpython 3.6.7 and django_polymorphic 2.0.3.
Demonstration, with the attached file
polybug.tar.gz:
[here, rename Rodent to CuddlyRodent throughout models.py]
All reactions