Skip to content

Commit 5111fb0

Browse files
committed
Bump to 3.1
1 parent e9341fe commit 5111fb0

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

docs/changelog.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
11
Changelog
22
=========
33

4+
Changes in 3.1 (2021-11-18)
5+
---------------------------
6+
7+
* Added support for Django 4.0.
8+
* Fixed crash when the admin "add type" view has no choices; will show a permission denied.
9+
* Fixed missing ``locale`` folder in sdist.
10+
* Fixed missing ``QuerySet.bulk_create(.., ignore_conflicts=True)`` parameter support.
11+
* Fixed ``FilteredRelation`` support.
12+
* Fixed supporting class keyword arguments in model definitions for ``__init_subclass__()``.
13+
* Fixed including ``polymorphic.tests.migrations`` in the sdist.
14+
* Fixed non-polymorphic parent handling, which has no ``_base_objects``.
15+
* Fixed missing ``widgets`` support for ``modelform_factory()``.
16+
* Fixed ``has_changed`` handling for ``polymorphic_ctype_id`` due to implicit str to int conversions.
17+
* Fixed ``Q`` object handling when lists are used (e.g. in django-advanced-filters_).
18+
* Fixed Django Admin support when using a script-prefix.
19+
20+
Many thanks to everyone providing clear pull requests!
21+
22+
423
Changes in 3.0.0 (2020-08-21)
524
-----------------------------
625

726
* Support for Django 3.X
827
* Dropped support for python 2.X
928
* A lot of various fixes and improvements by various authors. Thanks a lot!
1029

30+
1131
Changes in 2.1.2 (2019-07-15)
1232
-----------------------------
1333

@@ -417,6 +437,7 @@ It supports Django 1.1 up till 1.4 and Python 2.4 up till 2.7.
417437
For a detailed list of it's changes, see the :doc:`archived changelog <changelog_archive>`.
418438

419439
.. _Grappelli: http://grappelliproject.com/
440+
.. _django-advanced-filters: https://github.com/modlinltd/django-advanced-filters
420441
.. _django-extra-views: https://github.com/AndrewIngram/django-extra-views
421442
.. _django-guardian: https://github.com/django-guardian/django-guardian
422443
.. _django-parler: https://github.com/django-parler/django-parler

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
# built documents.
6161
#
6262
# The short X.Y version.
63-
version = "2.1.2"
63+
version = "3.1"
6464
# The full version, including alpha/beta/rc tags.
65-
release = "2.1.2"
65+
release = "3.1"
6666

6767
# The language for content autogenerated by Sphinx. Refer to documentation
6868
# for a list of supported languages.

docs/quickstart.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ Update the settings file::
1212
'django.contrib.contenttypes',
1313
)
1414

15-
The current release of *django-polymorphic* supports Django 1.11, 2.0, 2.1, 2.2 and Python 2.7 and 3.5+ is supported.
16-
For older Django versions, use *django-polymorphic==1.3*.
15+
The current release of *django-polymorphic* supports Django 2.2 - 4.0 and Python 3.6+.
1716

1817
Making Your Models Polymorphic
1918
------------------------------

setup.cfg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = django-polymorphic
3-
version = 3.0.0
3+
version = 3.1.0
44
description = Seamless polymorphic inheritance for Django models
55
long_description = file:README.rst
66
author = Bert Constantin
@@ -14,19 +14,20 @@ classifiers =
1414
Development Status :: 5 - Production/Stable
1515
Environment :: Web Environment
1616
Framework :: Django
17-
Framework :: Django :: 2.1
1817
Framework :: Django :: 2.2
1918
Framework :: Django :: 3.0
2019
Framework :: Django :: 3.1
20+
Framework :: Django :: 3.2
21+
Framework :: Django :: 4.0
2122
Intended Audience :: Developers
2223
License :: OSI Approved :: BSD License
2324
Operating System :: OS Independent
2425
Programming Language :: Python :: 3
2526
Programming Language :: Python :: 3 :: Only
26-
Programming Language :: Python :: 3.5
2727
Programming Language :: Python :: 3.6
2828
Programming Language :: Python :: 3.7
2929
Programming Language :: Python :: 3.8
30+
Programming Language :: Python :: 3.9
3031
Topic :: Database
3132

3233
[options]
@@ -38,4 +39,5 @@ install_requires =
3839
[options.packages.find]
3940
exclude =
4041
polymorphic.tests
41-
polymorphic.tests.migrations
42+
polymorphic.tests.*
43+
polymorphic/tests

0 commit comments

Comments
 (0)