From 7d4f9dd9ae9a7a334c695f40233104354a9b42d6 Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Mon, 28 Dec 2015 17:18:40 +0100 Subject: [PATCH] docs: update changelog on how to to port to 0.8 --- docs/changelog.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index cb657f3..6e1afb0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,34 @@ Changelog ========== +Version 0.8 (2015-12-28) +------------------------ + +* Added Django 1.9 compatibility. + +**NOTE:** The import paths have changed. Instead of ``from polymorphic import X``, +you'll have to import from the proper package. For example: + +.. code-block:: python + + polymorphic.models import PolymorphicModel + polymorphic.managers import PolymorphicManager, PolymorphicQuerySet + polymorphic.showfields import ShowFieldContent, ShowFieldType, ShowFieldTypeAndContent + +* Removed ``__version__.py`` in favor of a standard ``__version__`` in ``polymorphic/__init__.py``. +* Renamed ``polymorphic.manager`` => ``polymorphic.managers`` for consistentcy. +* Removed automatic proxying of method calls to the queryset class. + Use the standard Django methods instead: + +.. code-block:: python + + # In model code: + objects = PolymorphicQuerySet.as_manager() + + # For manager code: + MyCustomManager = PolymorphicManager.from_queryset(MyCustomQuerySet) + + Version 0.7.2 (2015-10-01) --------------------------