Skip to content

Login mixins #1

New issue

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

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

Already on GitHub? # to your account

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant