From 36873ce834d1e2b50b0e296f19e11b6d17d04a63 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 10 Jul 2016 21:54:36 -0600 Subject: [PATCH] Flake8. --- bikeshop_project/registration/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 15d1e01..a086e19 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -1,4 +1,5 @@ -from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin +from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, + PermissionsMixin) from django.db import models @@ -69,14 +70,15 @@ class CustomUser(AbstractBaseUser, PermissionsMixin): class Member(models.Model): - user = models.OneToOneField(CustomUser, on_delete=models.CASCADE, null=True) + user = models.OneToOneField(CustomUser, on_delete=models.CASCADE, + null=True) email = models.EmailField( verbose_name='email address', max_length=255, unique=False, null=True, blank=True, - ) + ) email_consent = models.BooleanField(default=False) first_name = models.CharField(max_length=255, null=False) last_name = models.CharField(max_length=255, null=False)