Changes between Initial Version and Version 1 of Ticket #25142, comment 14
- Timestamp:
- Jul 25, 2015, 3:57:37 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25142, comment 14
initial v1 1 Unfortunately turns out we can't refactor all mixins to implement {{{AccessMixin.has_permission}}}, because it would forbid stacking them -- [https://github.com/django/django/blob/master/docs/topics/auth/default.txt#L621 docs warn about this] and explain why that would be the case .1 Unfortunately turns out we can't refactor all mixins to implement {{{AccessMixin.has_permission}}}, because it would forbid stacking them -- [https://github.com/django/django/blob/master/docs/topics/auth/default.txt#L621 docs warn about this] and explain why that would be the case (BTW this admonition is not rendered in [https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.mixins.UserPassesTestMixin djangoproject.com/docs]). 2 2 3 3 I reverted to the initial patch which allows PermissionRequiredMixin to be used as a base class to easily implement an object permissions mixin.