Files
@ 10b6358b9271
Branch filter:
Location: symposion_app/pinaxcon/proposals/forms.py - annotation
10b6358b9271
1.5 KiB
text/x-python
Add release materials check boxes to miniconf proposal
We need to have people who are submitting a miniconf proposal agree to
releasing the material. The easiest way to do this is to just make it a
proposal like the other two types. We don't have audience type for
miniconf, instead of deleting it just have a default - it's easier.
WARNING: This requires a real migration to be performed before use.
We need to have people who are submitting a miniconf proposal agree to
releasing the material. The easiest way to do this is to just make it a
proposal like the other two types. We don't have audience type for
miniconf, instead of deleting it just have a default - it's easier.
WARNING: This requires a real migration to be performed before use.
04f246d85071 04f246d85071 8d77023aec4c 04f246d85071 39b556b7ac4f 04f246d85071 04f246d85071 8fa8fc4012a5 8fa8fc4012a5 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 9c986111a193 04f246d85071 9c986111a193 9c986111a193 9c986111a193 9c986111a193 9c986111a193 04f246d85071 9c986111a193 04f246d85071 4c458fd584d3 2cdb554623e5 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 2cdb554623e5 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 4c458fd584d3 10b6358b9271 10b6358b9271 4c458fd584d3 | from django import forms
from pinaxcon.proposals.models import TalkProposal, TutorialProposal, MiniconfProposal
class ProposalForm(forms.ModelForm):
required_css_class = 'label-required'
def clean_description(self):
value = self.cleaned_data["description"]
if len(value) > 400:
raise forms.ValidationError(
u"The description must be less than 400 characters"
)
return value
class TalkProposalForm(ProposalForm):
class Meta:
model = TalkProposal
fields = [
"title",
"target_audience",
"abstract",
"private_abstract",
"technical_requirements",
"project",
"project_url",
"video_url",
"recording_release",
"materials_release",
]
class TutorialProposalForm(ProposalForm):
class Meta:
model = TutorialProposal
fields = [
"title",
"target_audience",
"abstract",
"private_abstract",
"technical_requirements",
"project",
"project_url",
"video_url",
"recording_release",
"materials_release",
]
class MiniconfProposalForm(ProposalForm):
class Meta:
model = MiniconfProposal
fields = [
"title",
"abstract",
"private_abstract",
"technical_requirements",
"recording_release",
"materials_release",
]
|