There are multiple options to maintain different kind of users in Django.

When I came across this situation, I created a custom User class by 
inheriting AbstractBaseUser class and kept a positive integer field to 
maintain the type of user. Then I created Sub-classes Manager & Employee 
classes.
I created a custom authentication backend which will return the user object 
according to the user type.

You can try this or You can just extend the AbstractUser class.

On Friday, December 14, 2018 at 11:58:50 AM UTC+5:30, maunish dave wrote:
>
> My project contains two user one for managers and other for employees any 
> suggestions?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b3b8b178-b1bb-4a8a-9d6d-1ce3b65609fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to