Proposal forms to match new tutorial and miniconf models
This commit is contained in:
parent
b9b9834f63
commit
4c458fd584
2 changed files with 31 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
from django import forms
|
||||
|
||||
from .models import TalkProposal
|
||||
from .models import TalkProposal, TutorialProposal, MiniconfProposal
|
||||
|
||||
|
||||
class ProposalForm(forms.ModelForm):
|
||||
|
@ -30,3 +30,31 @@ class TalkProposalForm(ProposalForm):
|
|||
"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",
|
||||
]
|
||||
|
|
|
@ -219,6 +219,8 @@ AUTHENTICATION_BACKENDS = [
|
|||
CONFERENCE_ID = 1
|
||||
PROPOSAL_FORMS = {
|
||||
"talk": "pinaxcon.proposals.forms.TalkProposalForm",
|
||||
"tutorial": "pinaxcon.proposals.forms.TutorialProposalForm",
|
||||
"miniconf": "pinaxcon.proposals.forms.MiniconfProposalForm",
|
||||
}
|
||||
PINAX_PAGES_HOOKSET = "pinaxcon.hooks.PinaxPagesHookSet"
|
||||
PINAX_BOXES_HOOKSET = "pinaxcon.hooks.PinaxBoxesHookSet"
|
||||
|
|
Loading…
Reference in a new issue