Re: extending a custom user (AbstractBaseUser) and displaying in admin

2019-11-24 Thread Elico
Hi Motaz, Thank you for your response. I didn’t try that yet, however my assumption is that I would have duplicates of fields inherited from the User class. On Sun 24. Nov 2019 at 11:16, Motaz Hejaze wrote: > One way around is to make the models Employee and Company to inheret from > User

Re: extending a custom user (AbstractBaseUser) and displaying in admin

2019-11-24 Thread Motaz Hejaze
One way around is to make the models Employee and Company to inheret from User in models.py class Employee(User): ... class Company(User): ... On Sun, 24 Nov 2019, 5:33 am Underground Creatorz, < moorestephen...@gmail.com> wrote: > Hello all. Have a merry christmas and happy new Year. (

Re: extending a custom user (AbstractBaseUser) and displaying in admin

2019-11-23 Thread Underground Creatorz
Hello all. Have a merry christmas and happy new Year. ( moorestephen...@gmail.com) On Sat., 23 Nov. 2019, 11:26 am Elic, wrote: > Hi, > > Hope you are all doing well. > > I had to change the User object to support several use-cases in my system. > > I have created a custom User object that

extending a custom user (AbstractBaseUser) and displaying in admin

2019-11-22 Thread Elic
Hi, Hope you are all doing well. I had to change the User object to support several use-cases in my system. I have created a custom User object that extends AbstractBaseUser.This object only has email, password, last_login and the permissions (is_stuff, is_superuser). I also created