Changes between Initial Version and Version 1 of Ticket #18763, comment 9
- Timestamp:
- Jul 24, 2014, 1:35:08 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18763, comment 9
initial v1 1 1 Moved with_perm checking to the authentication backends. Current strategy is to use the top-most backend that defines `with_perm`. `django.contrib.auth.backends.ModelBackend` falls back to checking the same as was previously on the `UserManager`. This allows custom authentication backends to specify their own behaviour for `with_perm`, that takes `obj` into account. 2 2 3 It is now possible to do `User.objects.with_perm('can_delete', obj)` along with `User.objects.with_perm('can_delete') .3 It is now possible to do `User.objects.with_perm('can_delete', obj)` along with `User.objects.with_perm('can_delete')`. 4 4 5 5 Pull request here: https://github.com/django/django/pull/2951