From 0c814790a703e78d6a41b98e53f1169d0e3d0476 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 13 Jan 2020 04:58:23 +0000 Subject: [PATCH] Mark some member fields as required --- apiserver/apiserver/api/models.py | 4 ++-- webclient/src/Account.js | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apiserver/apiserver/api/models.py b/apiserver/apiserver/api/models.py index 7be265b..de4d4eb 100644 --- a/apiserver/apiserver/api/models.py +++ b/apiserver/apiserver/api/models.py @@ -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) diff --git a/webclient/src/Account.js b/webclient/src/Account.js index 45a1e8f..01552f9 100644 --- a/webclient/src/Account.js +++ b/webclient/src/Account.js @@ -107,33 +107,40 @@ export function AccountForm(props) {