Changes between Initial Version and Version 1 of Ticket #29220, comment 3
- Timestamp:
- Mar 15, 2018, 6:29:45 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29220, comment 3
initial v1 3 3 When using a class-based view (CBV) you need to use [https://docs.djangoproject.com/en/stable/topics/auth/default/#django.contrib.auth.mixins.UserPassesTestMixin UserPassesTestMixin] instead of the `@user_passes_test` decorator. 4 4 5 (Alternatively, you can use `@method_decorator` to make this work - see https://stackoverflow.com/q/8082670/ - but theusing the mixin is straightforward.)5 (Alternatively, you can use `@method_decorator` to make this work - see https://stackoverflow.com/q/8082670/ - but using the mixin is straightforward.)