Changes between Initial Version and Version 1 of Ticket #25142, comment 14


Ignore:
Timestamp:
Jul 25, 2015, 3:57:37 AM (9 years ago)
Author:
Akis Kesoglou

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.
     1Unfortunately 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]).
    22
    33I reverted to the initial patch which allows PermissionRequiredMixin to be used as a base class to easily implement an object permissions mixin.
Back to Top