pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-django-polymorphic py-django-polymorphic: updat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ccb49c2a40ef
branches: trunk
changeset: 376189:ccb49c2a40ef
user: adam <adam%pkgsrc.org@localhost>
date: Mon Feb 26 17:16:52 2018 +0000
description:
py-django-polymorphic: updated to 2.0.2
Changes in 2.0.2:
Fixed manager inheritance behavior for Django 1.11, by automatically enabling Meta.manager_inheritance_from_future if it's not defined. This restores the manager inheritance behavior that
django-polymorphic 1.3 provided for Django 1.x projects.
Fixed internal base_objects usage.
Changes in 2.0.1:
Fixed manager inheritance detection for Django 1.11.
It's recommended to use Meta.manager_inheritance_from_future so Django 1.x code also inherit the PolymorphicManager in all subclasses. Django 2.0 already does this by default.
Deprecated the base_objects manager. Use objects.non_polymorphic() instead.
Optimized detection for dumpdata behavior, avoiding the performance hit of __getattribute__().
Fixed test management commands
Changes in 2.0:
BACKWARDS INCOMPATIBILITY: Dropped Django 1.8 and 1.10 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 Django 2.0 support.
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.
The polymorphic.utils.reset_polymorphic_ctype function can be used for that.
Added PolymorphicTypeInvalid exception when database was incorrectly imported.
Added polymorphic.utils.get_base_polymorphic_model() to find the base model for types.
Using base_model on the polymorphic admins is no longer required, as this can be autodetected.
Fixed manager errors for swappable models.
Fixed deleteText of |as_script_options template filter.
Fixed .filter(applabel__ModelName___field=...) lookups.
Improved polymorphic.utils.reset_polymorphic_ctype() to accept models in random ordering.
Fix fieldsets handling in the admin (declared_fieldsets is removed since Django 1.9)
diffstat:
www/py-django-polymorphic/Makefile | 12 ++--
www/py-django-polymorphic/PLIST | 99 ++++++++++++++++++++++++++++++++-----
www/py-django-polymorphic/distinfo | 10 +-
3 files changed, 96 insertions(+), 25 deletions(-)
diffs (174 lines):
diff -r 73011d1c045c -r ccb49c2a40ef www/py-django-polymorphic/Makefile
--- a/www/py-django-polymorphic/Makefile Mon Feb 26 16:53:15 2018 +0000
+++ b/www/py-django-polymorphic/Makefile Mon Feb 26 17:16:52 2018 +0000
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.2 2016/06/08 17:43:49 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2018/02/26 17:16:52 adam Exp $
-DISTNAME= django_polymorphic-0.9.1
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+DISTNAME= django-polymorphic-2.0.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/django_polymorphic/}
MAINTAINER= adam%NetBSD.org@localhost
-HOMEPAGE= https://github.com/chrisglass/django_polymorphic/
+HOMEPAGE= https://github.com/chrisglass/django_polymorphic
COMMENT= Simplifies using inherited models in Django projects
LICENSE= modified-bsd
-DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django
+DEPENDS+= ${PYPKGPREFIX}-django>=1.11:../../www/py-django
-USE_LANGUAGES= # none
+USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 73011d1c045c -r ccb49c2a40ef www/py-django-polymorphic/PLIST
--- a/www/py-django-polymorphic/PLIST Mon Feb 26 16:53:15 2018 +0000
+++ b/www/py-django-polymorphic/PLIST Mon Feb 26 17:16:52 2018 +0000
@@ -1,22 +1,63 @@
-@comment $NetBSD: PLIST,v 1.1 2016/04/20 20:01:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/02/26 17:16:52 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/pbr.json
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/polymorphic/__init__.py
${PYSITELIB}/polymorphic/__init__.pyc
${PYSITELIB}/polymorphic/__init__.pyo
-${PYSITELIB}/polymorphic/admin.py
-${PYSITELIB}/polymorphic/admin.pyc
-${PYSITELIB}/polymorphic/admin.pyo
+${PYSITELIB}/polymorphic/admin/__init__.py
+${PYSITELIB}/polymorphic/admin/__init__.pyc
+${PYSITELIB}/polymorphic/admin/__init__.pyo
+${PYSITELIB}/polymorphic/admin/childadmin.py
+${PYSITELIB}/polymorphic/admin/childadmin.pyc
+${PYSITELIB}/polymorphic/admin/childadmin.pyo
+${PYSITELIB}/polymorphic/admin/filters.py
+${PYSITELIB}/polymorphic/admin/filters.pyc
+${PYSITELIB}/polymorphic/admin/filters.pyo
+${PYSITELIB}/polymorphic/admin/forms.py
+${PYSITELIB}/polymorphic/admin/forms.pyc
+${PYSITELIB}/polymorphic/admin/forms.pyo
+${PYSITELIB}/polymorphic/admin/generic.py
+${PYSITELIB}/polymorphic/admin/generic.pyc
+${PYSITELIB}/polymorphic/admin/generic.pyo
+${PYSITELIB}/polymorphic/admin/helpers.py
+${PYSITELIB}/polymorphic/admin/helpers.pyc
+${PYSITELIB}/polymorphic/admin/helpers.pyo
+${PYSITELIB}/polymorphic/admin/inlines.py
+${PYSITELIB}/polymorphic/admin/inlines.pyc
+${PYSITELIB}/polymorphic/admin/inlines.pyo
+${PYSITELIB}/polymorphic/admin/parentadmin.py
+${PYSITELIB}/polymorphic/admin/parentadmin.pyc
+${PYSITELIB}/polymorphic/admin/parentadmin.pyo
${PYSITELIB}/polymorphic/base.py
${PYSITELIB}/polymorphic/base.pyc
${PYSITELIB}/polymorphic/base.pyo
-${PYSITELIB}/polymorphic/manager.py
-${PYSITELIB}/polymorphic/manager.pyc
-${PYSITELIB}/polymorphic/manager.pyo
+${PYSITELIB}/polymorphic/contrib/__init__.py
+${PYSITELIB}/polymorphic/contrib/__init__.pyc
+${PYSITELIB}/polymorphic/contrib/__init__.pyo
+${PYSITELIB}/polymorphic/contrib/extra_views.py
+${PYSITELIB}/polymorphic/contrib/extra_views.pyc
+${PYSITELIB}/polymorphic/contrib/extra_views.pyo
+${PYSITELIB}/polymorphic/contrib/guardian.py
+${PYSITELIB}/polymorphic/contrib/guardian.pyc
+${PYSITELIB}/polymorphic/contrib/guardian.pyo
+${PYSITELIB}/polymorphic/formsets/__init__.py
+${PYSITELIB}/polymorphic/formsets/__init__.pyc
+${PYSITELIB}/polymorphic/formsets/__init__.pyo
+${PYSITELIB}/polymorphic/formsets/generic.py
+${PYSITELIB}/polymorphic/formsets/generic.pyc
+${PYSITELIB}/polymorphic/formsets/generic.pyo
+${PYSITELIB}/polymorphic/formsets/models.py
+${PYSITELIB}/polymorphic/formsets/models.pyc
+${PYSITELIB}/polymorphic/formsets/models.pyo
+${PYSITELIB}/polymorphic/formsets/utils.py
+${PYSITELIB}/polymorphic/formsets/utils.pyc
+${PYSITELIB}/polymorphic/formsets/utils.pyo
+${PYSITELIB}/polymorphic/locale/en/LC_MESSAGES/django.po
+${PYSITELIB}/polymorphic/locale/es/LC_MESSAGES/django.po
+${PYSITELIB}/polymorphic/locale/fr/LC_MESSAGES/django.po
${PYSITELIB}/polymorphic/managers.py
${PYSITELIB}/polymorphic/managers.pyc
${PYSITELIB}/polymorphic/managers.pyo
@@ -32,9 +73,12 @@
${PYSITELIB}/polymorphic/showfields.py
${PYSITELIB}/polymorphic/showfields.pyc
${PYSITELIB}/polymorphic/showfields.pyo
+${PYSITELIB}/polymorphic/static/polymorphic/css/polymorphic_inlines.css
+${PYSITELIB}/polymorphic/static/polymorphic/js/polymorphic_inlines.js
${PYSITELIB}/polymorphic/templates/admin/polymorphic/add_type_form.html
${PYSITELIB}/polymorphic/templates/admin/polymorphic/change_form.html
${PYSITELIB}/polymorphic/templates/admin/polymorphic/delete_confirmation.html
+${PYSITELIB}/polymorphic/templates/admin/polymorphic/edit_inline/stacked.html
${PYSITELIB}/polymorphic/templates/admin/polymorphic/object_history.html
${PYSITELIB}/polymorphic/templatetags/__init__.py
${PYSITELIB}/polymorphic/templatetags/__init__.pyc
@@ -42,9 +86,36 @@
${PYSITELIB}/polymorphic/templatetags/polymorphic_admin_tags.py
${PYSITELIB}/polymorphic/templatetags/polymorphic_admin_tags.pyc
${PYSITELIB}/polymorphic/templatetags/polymorphic_admin_tags.pyo
-${PYSITELIB}/polymorphic/tests.py
-${PYSITELIB}/polymorphic/tests.pyc
-${PYSITELIB}/polymorphic/tests.pyo
-${PYSITELIB}/polymorphic/tools_for_tests.py
-${PYSITELIB}/polymorphic/tools_for_tests.pyc
-${PYSITELIB}/polymorphic/tools_for_tests.pyo
+${PYSITELIB}/polymorphic/templatetags/polymorphic_formset_tags.py
+${PYSITELIB}/polymorphic/templatetags/polymorphic_formset_tags.pyc
+${PYSITELIB}/polymorphic/templatetags/polymorphic_formset_tags.pyo
+${PYSITELIB}/polymorphic/tests/__init__.py
+${PYSITELIB}/polymorphic/tests/__init__.pyc
+${PYSITELIB}/polymorphic/tests/__init__.pyo
+${PYSITELIB}/polymorphic/tests/migrations/0001_initial.py
+${PYSITELIB}/polymorphic/tests/migrations/0001_initial.pyc
+${PYSITELIB}/polymorphic/tests/migrations/0001_initial.pyo
+${PYSITELIB}/polymorphic/tests/migrations/__init__.py
+${PYSITELIB}/polymorphic/tests/migrations/__init__.pyc
+${PYSITELIB}/polymorphic/tests/migrations/__init__.pyo
+${PYSITELIB}/polymorphic/tests/test_admin.py
+${PYSITELIB}/polymorphic/tests/test_admin.pyc
+${PYSITELIB}/polymorphic/tests/test_admin.pyo
+${PYSITELIB}/polymorphic/tests/test_contrib.py
+${PYSITELIB}/polymorphic/tests/test_contrib.pyc
+${PYSITELIB}/polymorphic/tests/test_contrib.pyo
+${PYSITELIB}/polymorphic/tests/test_multidb.py
+${PYSITELIB}/polymorphic/tests/test_multidb.pyc
+${PYSITELIB}/polymorphic/tests/test_multidb.pyo
+${PYSITELIB}/polymorphic/tests/test_orm.py
+${PYSITELIB}/polymorphic/tests/test_orm.pyc
+${PYSITELIB}/polymorphic/tests/test_orm.pyo
+${PYSITELIB}/polymorphic/tests/test_regression.py
+${PYSITELIB}/polymorphic/tests/test_regression.pyc
+${PYSITELIB}/polymorphic/tests/test_regression.pyo
+${PYSITELIB}/polymorphic/tests/test_utils.py
+${PYSITELIB}/polymorphic/tests/test_utils.pyc
+${PYSITELIB}/polymorphic/tests/test_utils.pyo
+${PYSITELIB}/polymorphic/utils.py
+${PYSITELIB}/polymorphic/utils.pyc
+${PYSITELIB}/polymorphic/utils.pyo
diff -r 73011d1c045c -r ccb49c2a40ef www/py-django-polymorphic/distinfo
--- a/www/py-django-polymorphic/distinfo Mon Feb 26 16:53:15 2018 +0000
+++ b/www/py-django-polymorphic/distinfo Mon Feb 26 17:16:52 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2016/04/20 20:01:14 adam Exp $
+$NetBSD: distinfo,v 1.2 2018/02/26 17:16:52 adam Exp $
-SHA1 (django_polymorphic-0.9.1.tar.gz) = 3ef775af8a4aee72708be88e605961110a5cbef6
-RMD160 (django_polymorphic-0.9.1.tar.gz) = d5c10d4334ce860e1acdf7efae2416601a09ee93
-SHA512 (django_polymorphic-0.9.1.tar.gz) = 6aa1d8746ab32c29ab9cd1727c3b97924f40860847a01c8622957cf6aa414500bb438015b34cd4e390139d1219add3955a8a27489e9647bd3b1b84aa9492ad14
-Size (django_polymorphic-0.9.1.tar.gz) = 39261 bytes
+SHA1 (django-polymorphic-2.0.2.tar.gz) = 4d90aa00e83251da2fa0c48b455a8395969b2e72
+RMD160 (django-polymorphic-2.0.2.tar.gz) = 7a14a7297ddec4929e906acd036430f80ec004c0
+SHA512 (django-polymorphic-2.0.2.tar.gz) = 5790526debf68ea39b2cd578d33b0a5d715e7a5f20f83108a0fb26df956ba7b3bcbb10f67608f60df13d62f86efefe0152af7d069ca404b1b92fc9fdf71ffbd0
+Size (django-polymorphic-2.0.2.tar.gz) = 99541 bytes
Home |
Main Index |
Thread Index |
Old Index