Mark some member fields as required

This commit is contained in:
2020-01-13 04:58:23 +00:00
parent bd3146f413
commit 0c814790a7
2 changed files with 9 additions and 2 deletions

View File

@@ -15,13 +15,13 @@ class Member(models.Model):
first_name = models.CharField(max_length=32)
last_name = models.CharField(max_length=32)
preferred_name = models.CharField(max_length=32)
phone = models.CharField(max_length=32, null=True)
phone = models.CharField(default='', max_length=32, null=True)
emergency_contact_name = models.CharField(max_length=64, blank=True)
emergency_contact_phone = models.CharField(max_length=32, blank=True)
birthdate = models.DateField(blank=True, null=True)
is_minor = models.BooleanField(default=False)
guardian_name = models.CharField(max_length=32, blank=True, null=True)
street_address = models.CharField(max_length=32, null=True)
street_address = models.CharField(default='', max_length=32, null=True)
city = models.CharField(default='Calgary, AB', max_length=32)
postal_code = models.CharField(max_length=16, null=True)