django-rules icon indicating copy to clipboard operation
django-rules copied to clipboard

Awesome Django authorization, without the database

Results 47 django-rules issues
Sort by recently updated
recently updated
newest added

Adding `django-rules` to my Django project I am encountering the following issue: I want to add default permissions to my abstract base class and overwrite them, if needed. Below an...

* https://github.com/actions/checkout/releases * https://github.com/actions/setup-python/releases

Since `permission_required` takes a tuple, I imagined it would follow that which one of the permissions specified failed would also be available to us. This way, one is able to...

In `predicates.py`, there is code specific for Python 2, which is no longer supported. ``` __nonzero__ = __bool__ # python 2 ```

`rules.contrib.views.permission_required` fails with `AttributeError: 'functools.partial' object has no attribute '__name__'`, if it is applied to an anonymous `partial` function. Such situation may occur, when, for example, Sentry SDK is used...

When using `&` to combine predicates, if one of the predicates returns `None` (a falsey value), the overall predicate will mistakenly/confusingly return `True`. This is *not* consistent with running the...

I'm working on a Django DRF project, and while implementing the rules, I feel like inheriting from `RulesModelBase` creates a really heavy dependency on this library. I'm trying to make...

## ⚠️ Based on #156 Attempts to resolve #118 , so far only for DRF

Based on #155 , attempting to isolate the dependency of viewsets from the Model Mixins. This allows users to avoid the `RulesModelMixin` by defining a custom viewset mixin: ``` from...

### ⚠️ Base branch is #156 Based on the discussion of #155 to attempt to fully decouple the viewsets mixins from the ModelMixin, making them fully optional for DRF and...