Subject: CVS commit: pkgsrc/www/py-django-polymorphic
From: Adam Ciarcinski
Date: 2018-02-26 18:16:52
Message id: 20180226171652.C1088FB40@cvs.NetBSD.org

Log Message:
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)

Files:
RevisionActionfile
1.3modifypkgsrc/www/py-django-polymorphic/Makefile
1.2modifypkgsrc/www/py-django-polymorphic/PLIST
1.2modifypkgsrc/www/py-django-polymorphic/distinfo