Implementing different user types for one project

12 views
Skip to first unread message

Lloyd

unread,
Jul 8, 2021, 11:17:55 AM7/8/21
to Django users

I have a project with Artists, Bands and Site Members.

All the above user types share some basics such as ability to login and create profiles. Artists and Bands can have some admin privileges.

How do I best model these users? I was considering the following:
  1. Extend auth User. This would create extra database load with lookups (e.g. fetching profile users connected to default User)
  2. Subclass AbstractUser. This requires me to specify one auth user in settings. How would I handle that when I have three user types to consider?
I was thinking, I could create a class SiteUser(AbstractUser) and then, for seach separate user type - Artist, Band, Site Member, subclass SiteUser and set my auth user to SiteUser. Thoughts please?

TIA.
Reply all
Reply to author
Forward
0 new messages