Closed JackTheMico closed 8 years ago
Hi,
For classes, you can't use decorators, but you can use mixins, like this one for required login: https://docs.djangoproject.com/fr/1.10/topics/auth/default/#the-loginrequired-mixin
Thanks ! It will solve my problem properly , I'm going to close this issue.
Hello! First of all , thank you for making such wonderfull App.
Here is my problem: usually , the code in view.py is like this below
It is a method.
But in photologue's view.py its like :
They're all "class" !!! 囧rz Here comes the question , How can I use "@login_required" to such class ? I have no idea , please help me out .