Replies: 4 comments
-
|
Still present in version polymorphic v.3.0.0, Django v.3.2.5, python 3.9 |
Beta Was this translation helpful? Give feedback.
-
|
Same problem with v3.1.0 and Django 3.2.16 |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
@marnanel This is an upstream issue with Django that applies to normal multi-table models, not specific to django-polymorphic. |
Beta Was this translation helpful? Give feedback.
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]
Beta Was this translation helpful? Give feedback.
All reactions