Browse Source

Flake8.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
dae8a8f411
  1. 4
      bikeshop_project/registration/models.py

4
bikeshop_project/registration/models.py

@ -16,7 +16,7 @@ class CustomUserManager(BaseUserManager):
user = self.model( user = self.model(
email=self.normalize_email(email), email=self.normalize_email(email),
) )
user.set_password(password) user.set_password(password)
user.save(using=self._db) user.save(using=self._db)
@ -42,7 +42,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
verbose_name='email address', verbose_name='email address',
max_length=255, max_length=255,
unique=True, unique=True,
) )
is_admin = models.BooleanField(default=False) is_admin = models.BooleanField(default=False)
is_active = models.BooleanField(default=True) is_active = models.BooleanField(default=True)

Loading…
Cancel
Save