From dae8a8f411fdb0219019cb0613a0add499e89d65 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 10 Jul 2016 21:55:55 -0600 Subject: [PATCH] Flake8. --- bikeshop_project/registration/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 12f9826..2175b3f 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -16,7 +16,7 @@ class CustomUserManager(BaseUserManager): user = self.model( email=self.normalize_email(email), - ) + ) user.set_password(password) user.save(using=self._db) @@ -42,7 +42,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin): verbose_name='email address', max_length=255, unique=True, - ) + ) is_admin = models.BooleanField(default=False) is_active = models.BooleanField(default=True)