diff --git a/bikeshop_project/registration/migrations/0003_auto_20160327_0620.py b/bikeshop_project/registration/migrations/0003_auto_20160327_0620.py new file mode 100644 index 0000000..de51319 --- /dev/null +++ b/bikeshop_project/registration/migrations/0003_auto_20160327_0620.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2016-03-27 06:20 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('registration', '0002_member_email_consent'), + ] + + operations = [ + migrations.AlterField( + model_name='member', + name='date_of_birth', + field=models.DateField(null=True), + ), + migrations.AlterField( + model_name='member', + name='post_code', + field=models.CharField(max_length=20, null=True), + ), + ] diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 9d60ecb..a7110e8 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -48,14 +48,14 @@ class Member(AbstractBaseUser, PermissionsMixin): 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) - date_of_birth = models.DateField(null=True, blank=True) + date_of_birth = models.DateField(null=True, blank=False) guardian_name = models.CharField(max_length=255, null=True, blank=True) phone = models.CharField(max_length=20, null=True, blank=True) street = models.CharField(max_length=255, null=True, blank=True) city = models.CharField(max_length=255, null=True, blank=True) province = models.CharField(max_length=255, null=True, blank=True) country = models.CharField(max_length=255, null=True, blank=True) - post_code = models.CharField(max_length=20, null=True, blank=True) + post_code = models.CharField(max_length=20, null=True, blank=False) self_identification = models.CharField(max_length=255, null=True, blank=True) gender = models.CharField(max_length=255, null=True, blank=True) involvement = models.CharField(max_length=255, null=True, blank=True)