diff --git a/pinaxcon/proposals/forms.py b/pinaxcon/proposals/forms.py index 697ab5ce43f5f5def16c12a2b5e8da623c3a3f84..5ada0fdb051d2861b3759b931460b0b862727cc4 100644 --- a/pinaxcon/proposals/forms.py +++ b/pinaxcon/proposals/forms.py @@ -4,9 +4,6 @@ from django import forms from pinaxcon.proposals.fields import HelpTextField from pinaxcon.proposals.models import TalkProposal, TutorialProposal, MiniconfProposal -from pinaxcon.proposals.models import SysAdminProposal, KernelProposal, OpenHardwareProposal -from pinaxcon.proposals.models import GamesProposal, DevDevProposal, ArtTechProposal -from pinaxcon.proposals.models import OpenEdProposal, DocsProposal, SecurityProposal DEFAULT_FIELDS = [ @@ -37,13 +34,6 @@ class ProposalForm(forms.ModelForm): return value -class DocsProposalForm(ProposalForm): - - class Meta: - model = DocsProposal - fields = TALK_FORMAT_FIELDS - - class TalkProposalForm(ProposalForm): class Meta: @@ -92,91 +82,3 @@ class MiniconfProposalForm(ProposalForm): "recording_release", "materials_release", ] - -class SysadminProposalForm(ProposalForm): - - class Meta: - model = SysAdminProposal - fields = TALK_FORMAT_FIELDS - - -class SecurityProposalForm(ProposalForm): - - class Meta: - model = SecurityProposal - fields = TALK_FORMAT_FIELDS - - -class KernelProposalForm(ProposalForm): - - class Meta: - model = KernelProposal - fields = TALK_FORMAT_FIELDS - - -class GamesProposalForm(ProposalForm): - - HELP_TEXT = ("If you have any questions please check our " - "website or contact " - "the games miniconf organisers. We're excited to hear from you! You " - "can reach us via email " - "games@lca.lonely.coffee or twitter DM " - "@ducky_tape and @the_mcjones.") - - help_field = HelpTextField(text=HELP_TEXT, label='') - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self.fields['private_abstract'].help_text = ("it would be helpful if " - "you could please include a rough (don't worry, " - "we know it might change!) Outline of your presentation, e.g. " - "'0-2mins intro, 2-5mins the problem, 5-10mins things, 10-15mins " - "stuff 15-20mins solution'.") - - class Meta: - model = GamesProposal - fields = ['help_field', ] + TALK_FORMAT_FIELDS - - -class OpenHardwareProposalForm(ProposalForm): - - class Meta: - model = OpenHardwareProposal - fields = TALK_FORMAT_FIELDS - - -class OpenEdProposalForm(ProposalForm): - class Meta: - NO_TARGET_AUDIENCE_FIELDS = copy.copy(TALK_FORMAT_FIELDS) - del(NO_TARGET_AUDIENCE_FIELDS[1]) - - model = OpenEdProposal - fields = NO_TARGET_AUDIENCE_FIELDS - - -class DevDevProposalForm(ProposalForm): - - HELP_TEXT = ("The Developer Developer Miniconf is taking " - "20-minute talks only.") - - help_field = HelpTextField(text=HELP_TEXT, label='') - - class Meta: - model = DevDevProposal - fields = ['help_field', ] + DEFAULT_FIELDS - - -class ArtTechProposalForm(ProposalForm): - - class Meta: - ARTTECH_FIELDS = copy.copy(DEFAULT_FIELDS) - ARTTECH_FIELDS.remove("target_audience") - ARTTECH_FIELDS.append("talk_format") - ARTTECH_FIELDS.append("can_exhibit") - ARTTECH_FIELDS.append("exhibition_requirements") - - model = ArtTechProposal - fields = ARTTECH_FIELDS