Adds extra fields to the speaker profile model
This commit is contained in:
parent
149fbb4ac6
commit
217f2f32c1
2 changed files with 25 additions and 0 deletions
|
@ -13,6 +13,10 @@ class SpeakerForm(forms.ModelForm):
|
|||
"biography",
|
||||
"photo",
|
||||
"twitter_username",
|
||||
"experience",
|
||||
"accessibility",
|
||||
"travel_assistance",
|
||||
"accommodation_assistance",
|
||||
]
|
||||
|
||||
def clean_twitter_username(self):
|
||||
|
|
|
@ -35,6 +35,27 @@ class Speaker(models.Model):
|
|||
blank=True,
|
||||
help_text=_(u"Your Twitter account")
|
||||
)
|
||||
experience = models.TextField(
|
||||
blank=True,
|
||||
help_text=_("Please describe your past speaking experience, or expertise on your given topic."),
|
||||
verbose_name=_("Experience"))
|
||||
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,
|
||||
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,
|
||||
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