Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/migrating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ When the model is created elsewhere, you can also use the
reset_polymorphic_ctype(Base, Sub1, Sub2)

reset_polymorphic_ctype(Base, Sub1, Sub2, ignore_existing=True)


Renaming Polymorphic Models
============================

.. warning::

Renaming a polymorphic base class is a complex operation that requires manual migration editing.
Django's automatic migration generation does not properly handle renaming models with multi-table
inheritance, which can lead to invalid SQL and data loss.
Loading