class User(AbstractBaseUser): email = models.EmaIlField(max_length =255,unique=True) staff = models.BooleanField(default=True) active = models.BooleanField(default=False) admin = models.BooleanField(default=False)
class User(AbstractBaseUser): email = models.EmaIlField(max_length=255, unique=True) staff = models.BooleanField(default=True) active = models.BooleanField(default=False) admin = models.BooleanField(default=False) USERNAME_FIELD = 'email' REQUIRED_FIELDS
class User(AbstractBaseUser): email = models.EmaIlField(max_length=255, unique=True) staff = models.BooleanField(default=True) active = models.BooleanField(default=False) admin = models.BooleanField(default=False) USERNAME_FIELD = 'email' REQUIRED_FIELDS = [] def __str__(self): return self.email def get_full_name(self): return self.email
class User(AbstractBaseUser): email = models.EmaIlField(max_length=255, unique=True) pass
class User(AbstractBaseUser): email = models.EmaIlField(max_length = pass
class User(AbstractBaseUser): email = models.EmaIlField(max_length=255, unique=True) staff = models.BooleanField(default) pass