Changes between Initial Version and Version 1 of Ticket #29220, comment 3


Ignore:
Timestamp:
Mar 15, 2018, 6:29:45 AM (6 years ago)
Author:
Nick Pope

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29220, comment 3

    initial v1  
    33When 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.
    44
    5 (Alternatively, you can use `@method_decorator` to make this work - see https://stackoverflow.com/q/8082670/ - but the using 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.)
Back to Top