Updates speaker model to include information that LCA typically asks for
This commit is contained in:
parent
0ce99678c3
commit
aa56ac00c3
2 changed files with 41 additions and 5 deletions
|
@ -11,7 +11,10 @@ class SpeakerForm(forms.ModelForm):
|
||||||
fields = [
|
fields = [
|
||||||
"name",
|
"name",
|
||||||
"biography",
|
"biography",
|
||||||
|
"experience",
|
||||||
"photo",
|
"photo",
|
||||||
|
"telephone",
|
||||||
|
"homepage",
|
||||||
"twitter_username",
|
"twitter_username",
|
||||||
"accessibility",
|
"accessibility",
|
||||||
"travel_assistance",
|
"travel_assistance",
|
||||||
|
|
|
@ -24,12 +24,40 @@ class Speaker(models.Model):
|
||||||
name = models.CharField(verbose_name=_("Name"), max_length=100,
|
name = models.CharField(verbose_name=_("Name"), max_length=100,
|
||||||
help_text=_("As you would like it to appear in the"
|
help_text=_("As you would like it to appear in the"
|
||||||
" conference program."))
|
" conference program."))
|
||||||
biography = models.TextField(blank=True, help_text=_("A little bit about you. Edit using "
|
biography = models.TextField(
|
||||||
"<a href='http://warpedvisions.org/projects/"
|
blank=True,
|
||||||
"markdown-cheat-sheet/target='_blank'>"
|
help_text=_("This will appear on the conference website and in the "
|
||||||
"Markdown</a>."), verbose_name=_("Biography"))
|
"programme. Please write in the third person, eg 'Alice "
|
||||||
|
"is a Moblin hacker...', 150-200 words. Edit using "
|
||||||
|
"<a href='http://warpedvisions.org/projects/"
|
||||||
|
"markdown-cheat-sheet/target='_blank'>"
|
||||||
|
"Markdown</a>."),
|
||||||
|
verbose_name=_("Biography"),
|
||||||
|
)
|
||||||
biography_html = models.TextField(blank=True)
|
biography_html = models.TextField(blank=True)
|
||||||
|
experience = models.TextField(
|
||||||
|
blank=True,
|
||||||
|
help_text=_("Have you had any experience presenting elsewhere? If so, "
|
||||||
|
"we'd like to know. Anything you put here will only be "
|
||||||
|
"seen by the organisers and reviewers; use it to convince "
|
||||||
|
"them why they should accept your proposal. Edit using "
|
||||||
|
"<a href='http://warpedvisions.org/projects/"
|
||||||
|
"markdown-cheat-sheet/target='_blank'>"
|
||||||
|
"Markdown</a>."),
|
||||||
|
verbose_name=_("Speaking experience"),
|
||||||
|
)
|
||||||
|
experience_html = models.TextField(blank=True)
|
||||||
photo = models.ImageField(upload_to="speaker_photos", blank=True, verbose_name=_("Photo"))
|
photo = models.ImageField(upload_to="speaker_photos", blank=True, verbose_name=_("Photo"))
|
||||||
|
telephone = models.CharField(
|
||||||
|
max_length=15,
|
||||||
|
help_text=_(u"The conference team will need this to contact you "
|
||||||
|
"during the conference week. If you don't have one, or do "
|
||||||
|
"not wish to provide it, then enter NONE in this field.")
|
||||||
|
)
|
||||||
|
homepage = models.URLField(
|
||||||
|
blank=True,
|
||||||
|
help_text=_(u"Your home page, if you have one")
|
||||||
|
)
|
||||||
twitter_username = models.CharField(
|
twitter_username = models.CharField(
|
||||||
max_length=15,
|
max_length=15,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
@ -37,8 +65,12 @@ class Speaker(models.Model):
|
||||||
)
|
)
|
||||||
accessibility = models.TextField(
|
accessibility = models.TextField(
|
||||||
blank=True,
|
blank=True,
|
||||||
help_text=_("Please describe any special accessibility requirements that you may have."),
|
help_text=_("Please describe any special accessibility requirements "
|
||||||
|
"that you may have. Edit using "
|
||||||
|
"<a href='http://warpedvisions.org/projects/"
|
||||||
|
"markdown-cheat-sheet/target='_blank'>Markdown</a>."),
|
||||||
verbose_name=_("Accessibility requirements"))
|
verbose_name=_("Accessibility requirements"))
|
||||||
|
accessibility_html = models.TextField(blank=True)
|
||||||
travel_assistance = models.BooleanField(
|
travel_assistance = models.BooleanField(
|
||||||
blank=True,
|
blank=True,
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -70,6 +102,7 @@ class Speaker(models.Model):
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
self.biography_html = parse(self.biography)
|
self.biography_html = parse(self.biography)
|
||||||
|
self.experience_html = parse(self.experience)
|
||||||
return super(Speaker, self).save(*args, **kwargs)
|
return super(Speaker, self).save(*args, **kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue