Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login mixins #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Login mixins #1

wants to merge 2 commits into from

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.

None yet

1 participant