diff --git a/bikeshop_project/registration/migrations/0002_member_email_consent.py b/bikeshop_project/registration/migrations/0002_member_email_consent.py new file mode 100644 index 0000000..7f18d39 --- /dev/null +++ b/bikeshop_project/registration/migrations/0002_member_email_consent.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2016-03-27 04:50 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('registration', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='member', + name='email_consent', + field=models.BooleanField(default=False), + ), + ] diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 238634e..9d60ecb 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -44,6 +44,7 @@ class Member(AbstractBaseUser, PermissionsMixin): max_length=255, unique=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) preferred_name = models.CharField(max_length=255, null=True, blank=True)