Задать вопрос

Тел: +7 965 3737 888

491

Просмотров

2

Ответов

middleware for user_passes_test

Middleware to decorate views with user_passes_test in a centralized, url-matching manner. Makes it easy to apply permissions across large sections or all of a site.

Вопрос полезен? Да0/Нет0
file_3406.py(2.0Кб)
None

Ответы (2):

Ответgsf0:29.10.2009
Ответ полезен? Да0/Нет0

@oduvan Because sometimes you want to apply permissions across a good section of a site without making sure there's a decorator on every view.

Ответoduvan:25.10.2009
Ответ полезен? Да0/Нет0

Why this just don't make as decorator of view function?