0

So, I have a model with 3 custom user classes:

class customUser(AbstractBaseUser):

class customUser(AbstractBaseUser):

class customUser(AbstractBaseUser):

I need all of them to be in Django's admin like Users and Groups in Django by default. AUTH_USER_MODEL doesn't support tuples. Or what should I do? May someone help?

Adilet Maratov
  • 1,312
  • 2
  • 14
  • 24
  • Why inherit from `BaseUserManager`. If you want to create custom user models you have to `AbstractBaseUser`. In any case, `AUTH_USER_MODEL` does not support tuples. Maybe some insight in your use-case would give us more options on how to help you. – Torsten Engelbrecht Jan 08 '14 at 16:29
  • Why dont you just add it to the admin, like other models? – Aswin Murugesh Jan 08 '14 at 18:31
  • This has been asked and answered here: http://stackoverflow.com/questions/15012235/using-django-auth-useradmin-for-a-custom-user-model – Titus P Jan 08 '14 at 22:57

0 Answers0