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
>
. 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
*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
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
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
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
6 matches
Mail list logo