Django-permissionsx

Latest version: v2.0.0

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

Scan your dependencies

Page 1 of 3

2.0.0

=====

* The changes are drastic and backwards incompatible:
* First of all, I got rid off Django ORM-like syntax for defining permissions and replaced it with a pure and simple Python. Easier to follow (and debug).
* The code was largely refactored, simplified and optimized (mostly thanks to the above).
* A simple caching mechanism is in place, so an expression that was already evaluated for a single request/response cycle is going to be reused. Important especially if some of your `User` class methods hit the database.
* Focused on Python 3.6+, the future is already here.
* Removed if_false/if_true overrides.

1.4.0

=====

* Updated package to work with Django 1.1x and Python 3.5+.

1.3.4

=====

* Adding redirects inside of a wrapping P() is now possible, e.g.

.. code-block:: python

class TestView(PermissionsTemplateView):

permissions = Permissions(
P(user__is_authenticated=True) &
P(
P(user__is_superuser=True) | P(object__owner=Cmp('user')), if_false=AccessDeniedView.as_view()
)
)

1.3.3

=====

* Minor maintenance release. No changes affecting current installations.

1.3.2

=====

* Minor maintenance release. No changes affecting current installations.
* Changed policy on compatibility. Each release is now guaranteed to support:
* latest stable release and next upcoming of Django;
* latest Python 2.x and 3.x versions;
* latest stable versions of interoperable packages (currently `django-debug-toolbar` and `django-tastypie`)

1.3.1

=====

* Minor maintenance release. No changes affecting current installations.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.