docs: update changelog on how to to port to 0.8
parent
009069a32b
commit
7d4f9dd9ae
|
|
@ -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)
|
||||
--------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue