1π
β
Do you mean that the whole group CourseAdmin
has one email, phone and address? I doubt that.
Otherwise you donβt have to subclass anything. Just create a user profile model (that includes e.g. email, phone, address), create the groups: CourseAdmin
, Teacher
, Students
and set up the permissions accordingly.
You can distinguish the users by checking in which group they are in.
More about user authentication.
π€Felix Kling
1π
You canβt both extend and use the existing ones. Use a OneToOneField
instead.
- [Answered ]-Django comparing datetime.now with pub_date
- [Answered ]-Can't load image in my django template
- [Answered ]-Difference among Mongoengine, flask-MongoEngine and Django-MongoEngine?
Source:stackexchange.com