./www/py-django-polymorphic, Simplifies using inherited models in Django projects

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.0.3, Package name: py27-django-polymorphic-2.0.3, Maintainer: adam

Django-polymorphic simplifies using inherited models in Django projects.
When a query is made at the base model, the inherited model classes are
returned.


Required to run:
[www/py-django] [devel/py-setuptools] [lang/python27]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 98c259c7c9af3dc58d366a838858c6391a34d84e
RMD160: ffdbd5b876d51c67147108b508918a3dbc926d3b
Filesize: 95.563 KB

Version history: (Expand)


CVS history: (Expand)


   2018-10-07 09:13:14 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
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.
   2018-02-26 18:16:52 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
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)
   2016-06-08 19:43:49 by Thomas Klausner | Files touched by this commit (356)
Log message:
Switch to MASTER_SITES_PYPI.
   2016-04-20 22:01:14 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
Django-polymorphic simplifies using inherited models in Django projects.
When a query is made at the base model, the inherited model classes are
returned.