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) { <Form.Input label='First Name' + required {...makeProps('first_name')} /> <Form.Input label='Last Name' + required {...makeProps('last_name')} /> <Form.Input label='Preferred First Name' + required {...makeProps('preferred_name')} /> <Form.Input label='Email Address' + required {...makeProps('email')} /> <Form.Input label='Phone Number (999) 555-1234' + required {...makeProps('phone')} /> <Form.Input label='Street Address' + required {...makeProps('street_address')} /> <Form.Input label='City, Province' + required {...makeProps('city')} />