Browse Source

Keep track of email consent.

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
49e98929b0
  1. 20
      bikeshop_project/registration/migrations/0002_member_email_consent.py
  2. 1
      bikeshop_project/registration/models.py

20
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),
),
]

1
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)

Loading…
Cancel
Save