Up to [cvs.NetBSD.org] / pkgsrc / www / py-django-polymorphic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-django-polymorphic: updated to 3.1.0 3.1.0 Added support for Django 4.0. Fixed crash when the admin "add type" view has no choices; will show a permission denied. Fixed missing locale folder in sdist. Fixed missing QuerySet.bulk_create(.., ignore_conflicts=True) parameter support. Fixed FilteredRelation support. Fixed supporting class keyword arguments in model definitions for __init_subclass__(). Fixed including polymorphic.tests.migrations in the sdist. Fixed non-polymorphic parent handling, which has no _base_objects. Fixed missing widgets support for modelform_factory(). Fixed has_changed handling for polymorphic_ctype_id due to implicit str to int conversions. Fixed Q object handling when lists are used (e.g. in django-advanced-filters). Fixed Django Admin support when using a script-prefix.
*: switch django users to py-django3
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-django-polymorphic: updated to 3.0.0 Changes in 3.0.0 Support for Django 3.X Dropped support for python 2.X A lot of various fixes and improvements by various authors. Thanks a lot!
py-django-polymorphic: updated to 2.1.2 2.1.2: Fix admin 2.1.1: Fix import 2.1: Django 2.2 support
py-django-polymorphic: updated to 2.0.3 Changes in 2.0.3: * Fixed admin crash for Django 2.1 with missing use_required_attribute.
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)
Switch to MASTER_SITES_PYPI.
Django-polymorphic simplifies using inherited models in Django projects. When a query is made at the base model, the inherited model classes are returned.