Skip to content

Conversation

@ceoro9
Copy link

@ceoro9 ceoro9 commented May 15, 2018

I suggest to use user mixins, that check user authentication and his/her role(student or teacher) instead of decorators for class-based views, cause that looks better, more explicitly and more over you have to write less code. Btw I think for function views it could be better to do the same, I mean unite login_required and student/teacher_required decorators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant