From c0e9b90476d31651819d7955fe6d7433dc75f0f5 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 19 Jun 2016 14:00:17 +1000 Subject: [PATCH] Requires acceptance of the code of conduct and T&Cs --- symposion/speakers/forms.py | 5 +++++ symposion/speakers/models.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/symposion/speakers/forms.py b/symposion/speakers/forms.py index a1c547b2..d4643415 100644 --- a/symposion/speakers/forms.py +++ b/symposion/speakers/forms.py @@ -19,8 +19,13 @@ class SpeakerForm(forms.ModelForm): "accessibility", "travel_assistance", "accommodation_assistance", + "agreement", ] + def __init__(self, *a, **k): + super(SpeakerForm, self).__init__(*a, **k) + self.fields['agreement'].required = True + def clean_twitter_username(self): value = self.cleaned_data["twitter_username"] if value.startswith("@"): diff --git a/symposion/speakers/models.py b/symposion/speakers/models.py index 30d6490e..a9b50163 100644 --- a/symposion/speakers/models.py +++ b/symposion/speakers/models.py @@ -85,6 +85,12 @@ class Speaker(models.Model): "accommodation in order to present your proposed sessions."), verbose_name=_("Accommodation assistance required"), ) + agreement = models.BooleanField( + default=False, + help_text=_("I agree to the terms and confitions of attendance, and " + "I have read, understood, and agree to act according to " + "the standards set forth in our Code of Conduct ") + ) annotation = models.TextField(verbose_name=_("Annotation")) # staff only invite_email = models.CharField(max_length=200, unique=True, null=True, db_index=True, verbose_name=_("Invite_email"))