Django-polymorphic-tree

Latest version: v2.1

Safety actively analyzes 628924 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

1.4

---------------------------

* Add ability to restrict children, via ``child_types`` list on the model.
The value can be ``["self", "app.Model", "Model", Model]``.
* Added ability to set ``can_be_root`` to enforce using a node as child.
* Add ``validate_move_to()`` method to perform extra checks on moving children.
* Fix support for UUID fields as primary key.
* **Security notice:** fixed missing permission check on moving nodes, all staff members could move nodes.

1.3.1

-----------------------------

* Add Spanish (Argentina) language
* Fix rendering of empty list items on Django 1.9+ that have non-existing attributes/objects.
* Enforcing django-polymorphic_ >= 1.0.1 for Django 1.10.1 compatibility.
(the previous version already required django-polymorphic_ 1.0)

1.3

--------------

* Added Django 1.10 support
* Added convenient `get_closest_ancestor_of_type()` and `get_ancestors_of_type()` methods
* Support proxy model filtering by django-polymorphic_ 1.0
* Dropped Django 1.5 support / django-mptt 0.6 support.

.. note:: As of Django 1.10 managers of abstract classes are also inherited.
Hence, the need to override ``_default_manager`` is removed.
Use ``objects = YourPolymorphicMPTTManager()`` to override the manager now.

Make sure django-polymorphic_ 1.0 is installed for Django 1.10 projects.

1.2.5

----------------

* Fix grappelli theme appearance for admin list.

1.2.4

----------------

* Fix ``admin/polymorphic_tree/object_history.html`` template typoo.

1.2.3

----------------

* Fix tree list appearance for Django 1.8 and below (classic theme).

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.