Browse Source

Don't allow fields to be blank.

This is totes essential information for the BCBC.
feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
d58421fa31
  1. 25
      bikeshop_project/registration/migrations/0003_auto_20160327_0620.py
  2. 4
      bikeshop_project/registration/models.py

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

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

Loading…
Cancel
Save