Changeset - ee1c352571c4
[Not reviewed]
Merge
0 5 0
Scott Bragg - 8 years ago 2016-06-18 07:38:08
jsbragg@scriptforge.org
Merge pull request #14 from lca2017/chrisjrn/011-travel-requirements

Adds extra fields to the speaker profile
3 files changed with 24 insertions and 1 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
...
 
@@ -2,4 +2,5 @@ _build
 
*.pyc
 
dev.db
 
site_media
 
*.egg-info
...
 
\ No newline at end of file
 
*.egg-info
 
.DS_Store
symposion/speakers/forms.py
Show inline comments
...
 
@@ -13,6 +13,9 @@ class SpeakerForm(forms.ModelForm):
 
            "biography",
 
            "photo",
 
            "twitter_username",
 
            "accessibility",
 
            "travel_assistance",
 
            "accommodation_assistance",
 
        ]
 

	
 
    def clean_twitter_username(self):
symposion/speakers/models.py
Show inline comments
...
 
@@ -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"))
0 comments (0 inline, 0 general)