Answer the question
In order to leave comments, you need to log in
How to save different data for different user groups?
It is necessary to develop a "system of testing students."
There are user groups "Admin", "Teacher", "Student".
Different user groups have different data.
Teacher - full name, login / password, position, etc.
Student - full name, login / password, group, faculty, course, etc.
How to organize the model so that both teachers and students can log in? and how to close access to the admin panel to the Students group?
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
As an option, create models Student
and Teacher
, and in each of them link one-to-one with the model User
from django.contrib.auth.models
.
Admin rights can be controlled via user_permissions
model field User
( details )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question