From 217f2f32c169ca30aacef92e98b85d3284558830 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sat, 18 Jun 2016 13:53:02 +1000 Subject: [PATCH] Adds extra fields to the speaker profile model --- symposion/speakers/forms.py | 4 ++++ symposion/speakers/models.py | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/symposion/speakers/forms.py b/symposion/speakers/forms.py index c0acfe38..bab153a5 100644 --- a/symposion/speakers/forms.py +++ b/symposion/speakers/forms.py @@ -13,6 +13,10 @@ class SpeakerForm(forms.ModelForm): "biography", "photo", "twitter_username", + "experience", + "accessibility", + "travel_assistance", + "accommodation_assistance", ] def clean_twitter_username(self): diff --git a/symposion/speakers/models.py b/symposion/speakers/models.py index 6e6de9d4..77d48d9b 100644 --- a/symposion/speakers/models.py +++ b/symposion/speakers/models.py @@ -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"))