Requires acceptance of the code of conduct and T&Cs
This commit is contained in:
parent
782e5c9ea2
commit
c0e9b90476
2 changed files with 11 additions and 0 deletions
|
@ -19,8 +19,13 @@ class SpeakerForm(forms.ModelForm):
|
||||||
"accessibility",
|
"accessibility",
|
||||||
"travel_assistance",
|
"travel_assistance",
|
||||||
"accommodation_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):
|
def clean_twitter_username(self):
|
||||||
value = self.cleaned_data["twitter_username"]
|
value = self.cleaned_data["twitter_username"]
|
||||||
if value.startswith("@"):
|
if value.startswith("@"):
|
||||||
|
|
|
@ -85,6 +85,12 @@ class Speaker(models.Model):
|
||||||
"accommodation in order to present your proposed sessions."),
|
"accommodation in order to present your proposed sessions."),
|
||||||
verbose_name=_("Accommodation assistance required"),
|
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
|
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"))
|
invite_email = models.CharField(max_length=200, unique=True, null=True, db_index=True, verbose_name=_("Invite_email"))
|
||||||
|
|
Loading…
Reference in a new issue