[Answered ]-Extending/Subclassing admin Groups & Users classes in Django

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.

Leave a comment