From f22f39f67f02ff263a997835a765446fc24219c1 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Thu, 26 May 2016 18:30:33 -0600 Subject: [PATCH] Saner member sign-up! --- bikeshop_project/registration/forms.py | 2 +- .../templates/edit_member_form.html | 6 ++-- .../registration/templates/member_form.html | 14 ++++++---- bikeshop_project/registration/views.py | 28 +++++++++++++------ 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/bikeshop_project/registration/forms.py b/bikeshop_project/registration/forms.py index ccc1b43..a1da26d 100644 --- a/bikeshop_project/registration/forms.py +++ b/bikeshop_project/registration/forms.py @@ -4,7 +4,7 @@ from registration.models import Member class MemberForm(ModelForm): - waiver_substitute = BooleanField(label='I have read and agree to the above terms & conditions.', widget=CheckboxInput(attrs={'class': 'mdl-checkbox__input'})) + waiver_substitute = BooleanField(required=False, label='I have read and agree to the above terms & conditions.', widget=CheckboxInput(attrs={'class': 'mdl-checkbox__input'})) class Meta: model = Member diff --git a/bikeshop_project/registration/templates/edit_member_form.html b/bikeshop_project/registration/templates/edit_member_form.html index e1ca6b2..288e25f 100644 --- a/bikeshop_project/registration/templates/edit_member_form.html +++ b/bikeshop_project/registration/templates/edit_member_form.html @@ -2,16 +2,16 @@ {% load staticfiles %} {% block styles %} - + {% endblock %} {% block scripts %} - + - +