Tweak speaker profile and proposal forms
This commit is contained in:
parent
c01dad66f7
commit
bfaa7d9115
4 changed files with 12 additions and 13 deletions
|
@ -8,15 +8,15 @@ from pinaxcon.proposals import models
|
||||||
|
|
||||||
DEFAULT_FIELDS = [
|
DEFAULT_FIELDS = [
|
||||||
"title",
|
"title",
|
||||||
"primary_topic",
|
# "primary_topic",
|
||||||
"target_audience",
|
"target_audience",
|
||||||
"experience_level",
|
"experience_level",
|
||||||
"abstract",
|
"abstract",
|
||||||
"private_abstract",
|
"private_abstract",
|
||||||
"content_warning",
|
"content_warning",
|
||||||
"technical_requirements",
|
"technical_requirements",
|
||||||
"project",
|
# "project",
|
||||||
"project_url",
|
# "project_url",
|
||||||
"video_url",
|
"video_url",
|
||||||
"require_approval",
|
"require_approval",
|
||||||
"recording_release",
|
"recording_release",
|
||||||
|
|
|
@ -138,9 +138,8 @@ class MiniconfSessionProposal(Proposal):
|
||||||
FORMAT_OTHER = 5
|
FORMAT_OTHER = 5
|
||||||
|
|
||||||
TALK_FORMATS = [
|
TALK_FORMATS = [
|
||||||
(FORMAT_SHORT_PRESENTATION, "Lightning Talk (5-10 min)"),
|
(FORMAT_MEDIUM_PRESENTATION, "Short Presentation (15 or 20 min)"),
|
||||||
(FORMAT_MEDIUM_PRESENTATION, "Short Presentation (20-25 min)"),
|
(FORMAT_LONG_PRESENTATION, "Long Presentation (45 min)"),
|
||||||
(FORMAT_LONG_PRESENTATION, "Presentation (40-45 min)"),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
talk_format = models.IntegerField(
|
talk_format = models.IntegerField(
|
||||||
|
|
10
vendor/symposion/speakers/forms.py
vendored
10
vendor/symposion/speakers/forms.py
vendored
|
@ -16,14 +16,14 @@ class SpeakerForm(forms.ModelForm):
|
||||||
"experience",
|
"experience",
|
||||||
"photo",
|
"photo",
|
||||||
"telephone",
|
"telephone",
|
||||||
"local_timezone",
|
# "local_timezone",
|
||||||
"homepage",
|
"homepage",
|
||||||
"twitter_username",
|
"twitter_username",
|
||||||
"mastodon_username",
|
"mastodon_username",
|
||||||
"accessibility",
|
"accessibility",
|
||||||
"travel_assistance",
|
# "travel_assistance",
|
||||||
"accommodation_assistance",
|
# "accommodation_assistance",
|
||||||
"assistance",
|
# "assistance",
|
||||||
"agreement",
|
"agreement",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class SpeakerForm(forms.ModelForm):
|
||||||
super(SpeakerForm, self).__init__(*a, **k)
|
super(SpeakerForm, self).__init__(*a, **k)
|
||||||
self.fields['agreement'].required = True
|
self.fields['agreement'].required = True
|
||||||
self.fields['biography'].required = True
|
self.fields['biography'].required = True
|
||||||
self.fields['local_timezone'].required = True
|
# self.fields['local_timezone'].required = True
|
||||||
|
|
||||||
def clean_twitter_username(self):
|
def clean_twitter_username(self):
|
||||||
value = self.cleaned_data["twitter_username"]
|
value = self.cleaned_data["twitter_username"]
|
||||||
|
|
4
vendor/symposion/speakers/models.py
vendored
4
vendor/symposion/speakers/models.py
vendored
|
@ -80,8 +80,8 @@ class Speaker(models.Model):
|
||||||
accessibility = models.TextField(
|
accessibility = models.TextField(
|
||||||
blank=True,
|
blank=True,
|
||||||
help_text=_("Let us know how we can help you during the conference, for example "
|
help_text=_("Let us know how we can help you during the conference, for example "
|
||||||
"your accessibility requirements, whether you require access to child "
|
"your accessibility requirements, if you require a Visa invitation letter, whether you require access to child "
|
||||||
"minding facilities, or anything else you think we should know about."),
|
"minding facilities or anything else you think we should know about."),
|
||||||
verbose_name=_("Other requirements"))
|
verbose_name=_("Other requirements"))
|
||||||
accessibility_html = models.TextField(blank=True)
|
accessibility_html = models.TextField(blank=True)
|
||||||
travel_assistance = models.BooleanField(
|
travel_assistance = models.BooleanField(
|
||||||
|
|
Loading…
Reference in a new issue