Merge pull request #14 from lca2017/chrisjrn/011-travel-requirements

Adds extra fields to the speaker profile
This commit is contained in:
Scott Bragg 2016-06-18 17:38:08 +10:00 committed by GitHub
commit ee1c352571
3 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ _build
dev.db dev.db
site_media site_media
*.egg-info *.egg-info
.DS_Store

View file

@ -13,6 +13,9 @@ class SpeakerForm(forms.ModelForm):
"biography", "biography",
"photo", "photo",
"twitter_username", "twitter_username",
"accessibility",
"travel_assistance",
"accommodation_assistance",
] ]
def clean_twitter_username(self): def clean_twitter_username(self):

View file

@ -35,6 +35,25 @@ class Speaker(models.Model):
blank=True, blank=True,
help_text=_(u"Your Twitter account") help_text=_(u"Your Twitter account")
) )
accessibility = models.TextField(
blank=True,
help_text=_("Please describe any special accessibility requirements that you may have."),
verbose_name=_("Accessibility requirements"))
travel_assistance = models.BooleanField(
blank=True,
default=False,
help_text=_("Check this box if you require assistance to travel to Hobart to "
"present your proposed sessions."),
verbose_name=_("Travel assistance required"),
)
accommodation_assistance = models.BooleanField(
blank=True,
default=False,
help_text=_("Check this box if you require us to provide you with student-style "
"accommodation in order to present your proposed sessions."),
verbose_name=_("Accommodation assistance required"),
)
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"))
invite_token = models.CharField(max_length=40, db_index=True, verbose_name=_("Invite token")) invite_token = models.CharField(max_length=40, db_index=True, verbose_name=_("Invite token"))