Provide helpful assistence to migrate code to new 1.0+ format

This makes sure the changes in 4dc20a0213
don't cause a new range of bug reports, for things like "reverse()" no
longer works.
This commit is contained in:
Diederik van der Boor
2017-10-08 19:39:51 +02:00
parent 075f457045
commit 3fe17d7a23
2 changed files with 21 additions and 5 deletions
+6
View File
@@ -5,6 +5,12 @@ Changes in git
--------------
* **BACKWARDS INCOMPATIBILITY:** Dropped Django 1.8 support.
* **BACKWARDS INCOMPATIBILITY:** Removed old deprecated code from 1.0, thus:
* Import managers from ``polymorphic.managers`` (plural), not ``polymorphic.manager``.
* Register child models to the admin as well using ``@admin.register()`` or ``admin.site.register()``,
as this is no longer done automatically.
* Added ``PolymorphicTypeUndefined`` exception for incomplete imported models.
When a data migration or import creates an polymorphic model,
the ``polymorphic_ctype_id`` field should be filled in manually too.