diff --git a/docs/changelog.rst b/docs/changelog.rst index 1861e36..432a509 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,20 +1,22 @@ Changelog ========= -Changes in 2.1 (tbd) --------------------- +Changes in 2.1 (2019-07-15) +--------------------------- * Added Django 2.2 support. -* Change iterable class for ``.non_polymorphic()``, to completely cirvumvent polymorphic. +* Changed ``.non_polymorphic()``, to use a different iterable class that completely cirvumvent polymorphic. +* Changed SQL for ``instance_of`` filter: use ``IN`` statement instead of ``OR`` clauses. +* Changed queryset iteration to implement ``prefetch_related()`` support. * Fixed Django 3.0 alpha compatibility. * Fixed compatibility with current django-extra-views_ in ``polymorphic.contrib.extra_views``. -* Fixed missing hiding of the add-button of polymorphic lines in the Django admin. +* Fixed ``prefetch_related()`` support on polymorphic M2M relations. * Fixed model subclass ``___`` selector for abstract/proxy models. * Fixed model subclass ``___`` selector for models with a custom ``OneToOneField(parent_link=True)``. * Fixed unwanted results on calling ``queryset.get_real_instances([])``. -* Fixed ``prefetch_related()`` support. * Fixed unwanted ``TypeError`` exception when ``PolymorphicTypeInvalid`` should have raised. -* Optimized SQL for ``instance_of`` filter: use ``IN`` statement instead of ``OR`` clauses. +* Fixed hiding the add-button of polymorphic lines in the Django admin. +* Reformatted all files with black Changes in 2.0.3 (2018-08-24) diff --git a/docs/conf.py b/docs/conf.py index fbd9fed..04a5197 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,9 +61,9 @@ copyright = u"2013, Bert Constantin, Chris Glass, Diederik van der Boor" # built documents. # # The short X.Y version. -version = "2.0.3" +version = "2.1" # The full version, including alpha/beta/rc tags. -release = "2.0.3" +release = "2.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.cfg b/setup.cfg index ac733b4..00a8d98 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = django-polymorphic -version = 2.0.3 +version = 2.1 description = Seamless polymorphic inheritance for Django models long_description = file:README.rst author = Bert Constantin