Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
one. > Original message -------- > From: Tafadzwa Marshal > Date: 2019/12/17 00:22 (GMT+02:00) > To: django-users@googlegroups.com > Subject: Re: User is not logging in admin panel > > hello, your problem is easy to solve. The 'createsuperuser' command >

Re: User is not logging in admin panel

2019-12-16 Thread dumbaclassics
. Original message From: Tafadzwa Marshal Date: 2019/12/17 00:22 (GMT+02:00) To: django-users@googlegroups.com Subject: Re: User is not logging in admin panel hello, your problem is easy to solve. The 'createsuperuser' command creates a user with the 'staff&#x

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
*models.py* from django.db import models import uuid from django.contrib.auth.models import (BaseUserManager, AbstractBaseUser) from django.contrib.postgres.fields import ArrayField class UserManager(BaseUserManager): def create_user(self, email, password=None, **kwargs): if not email

Re: User is not logging in admin panel

2019-12-16 Thread Suraj Thapa FC
Where's the code On Mon, 16 Dec 2019, 5:53 pm Tafadzwa Marshal, wrote: > hello, your problem is easy to solve. The 'createsuperuser' command > creates a user with the 'staff' attribute set to true. When you create a > user through > the model thats inheriting from the User model, the default for

Re: User is not logging in admin panel

2019-12-16 Thread Tafadzwa Marshal
hello, your problem is easy to solve. The 'createsuperuser' command creates a user with the 'staff' attribute set to true. When you create a user through the model thats inheriting from the User model, the default for the 'staff' attribute is set to false. The solution is to make sure you override

User is not logging in admin panel

2019-12-16 Thread sagar ninave
Hello Everyone, i am getting some issue please help me. i have created custom user model in account app by extending auth user model. also i have creates register api to register user. i am able to create superuser from command prompt and api as well. and both user are storing in single User m