Merge pull request #14 from lca2017/chrisjrn/011-travel-requirements
Adds extra fields to the speaker profile
This commit is contained in:
commit
ee1c352571
3 changed files with 24 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,4 +2,5 @@ _build
|
|||
*.pyc
|
||||
dev.db
|
||||
site_media
|
||||
*.egg-info
|
||||
*.egg-info
|
||||
.DS_Store
|
||||
|
|
|
@ -13,6 +13,9 @@ class SpeakerForm(forms.ModelForm):
|
|||
"biography",
|
||||
"photo",
|
||||
"twitter_username",
|
||||
"accessibility",
|
||||
"travel_assistance",
|
||||
"accommodation_assistance",
|
||||
]
|
||||
|
||||
def clean_twitter_username(self):
|
||||
|
|
|
@ -35,6 +35,25 @@ class Speaker(models.Model):
|
|||
blank=True,
|
||||
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
|
||||
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"))
|
||||
|
|
Loading…
Reference in a new issue