Miniconf changes for Kernel, Docs & Dev
This commit is contained in:
parent
e7b090ca22
commit
84da4ca5c8
4 changed files with 80 additions and 2 deletions
|
@ -103,7 +103,7 @@ class KernelProposalForm(ProposalForm):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = KernelProposal
|
model = KernelProposal
|
||||||
fields = DEFAULT_FIELDS
|
fields = TALK_FORMAT_FIELDS
|
||||||
|
|
||||||
|
|
||||||
class GamesProposalForm(ProposalForm):
|
class GamesProposalForm(ProposalForm):
|
||||||
|
@ -132,23 +132,32 @@ class GamesProposalForm(ProposalForm):
|
||||||
model = GamesProposal
|
model = GamesProposal
|
||||||
fields = ['help_field', ] + TALK_FORMAT_FIELDS
|
fields = ['help_field', ] + TALK_FORMAT_FIELDS
|
||||||
|
|
||||||
|
|
||||||
class OpenHardwareProposalForm(ProposalForm):
|
class OpenHardwareProposalForm(ProposalForm):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = OpenHardwareProposal
|
model = OpenHardwareProposal
|
||||||
fields = TALK_FORMAT_FIELDS
|
fields = TALK_FORMAT_FIELDS
|
||||||
|
|
||||||
|
|
||||||
class OpenEdProposalForm(ProposalForm):
|
class OpenEdProposalForm(ProposalForm):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = OpenEdProposal
|
model = OpenEdProposal
|
||||||
fields = DEFAULT_FIELDS
|
fields = DEFAULT_FIELDS
|
||||||
|
|
||||||
|
|
||||||
class DevDevProposalForm(ProposalForm):
|
class DevDevProposalForm(ProposalForm):
|
||||||
|
|
||||||
|
HELP_TEXT = ("The Developer Developer Miniconf is taking <strong> "
|
||||||
|
"20-minute</strong> talks only.")
|
||||||
|
|
||||||
|
help_field = HelpTextField(text=HELP_TEXT, label='')
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = DevDevProposal
|
model = DevDevProposal
|
||||||
fields = DEFAULT_FIELDS
|
fields = ['help_field', ] + DEFAULT_FIELDS
|
||||||
|
|
||||||
|
|
||||||
class ArtTechProposalForm(ProposalForm):
|
class ArtTechProposalForm(ProposalForm):
|
||||||
|
|
||||||
|
|
25
pinaxcon/proposals/migrations/0011_auto_20181018_1818.py
Normal file
25
pinaxcon/proposals/migrations/0011_auto_20181018_1818.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.15 on 2018-10-18 07:18
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('proposals', '0010_auto_20181006_0542'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='kernelproposal',
|
||||||
|
name='talk_format',
|
||||||
|
field=models.IntegerField(choices=[(1, 'Presentation (40-45 min)'), (2, 'Short Presentation (20-30 min)')], default=1, help_text='Please indicate your preferred talk length in the private abstract field below.'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='docsproposal',
|
||||||
|
name='target_audience',
|
||||||
|
field=models.IntegerField(choices=[(1, 'User'), (2, 'Business'), (3, 'Community'), (4, 'Developer'), (4, 'Writer')], default=1),
|
||||||
|
),
|
||||||
|
]
|
20
pinaxcon/proposals/migrations/0012_auto_20181018_1830.py
Normal file
20
pinaxcon/proposals/migrations/0012_auto_20181018_1830.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.15 on 2018-10-18 07:30
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('proposals', '0011_auto_20181018_1818'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='arttechproposal',
|
||||||
|
name='can_exhibit',
|
||||||
|
field=models.IntegerField(choices=[(1, 'I am willing and able to exhibit my project on Thursday, January 24th'), (2, "I'm unable to exhibit my project")], default=1),
|
||||||
|
),
|
||||||
|
]
|
|
@ -68,6 +68,21 @@ class DocsProposal(Proposal):
|
||||||
(3, "Lightning Talk (5-10 min)")
|
(3, "Lightning Talk (5-10 min)")
|
||||||
]
|
]
|
||||||
|
|
||||||
|
TARGET_USER = 1
|
||||||
|
TARGET_BUSINESS = 2
|
||||||
|
TARGET_COMMUNITY = 3
|
||||||
|
TARGET_DEVELOPER = 4
|
||||||
|
TARGET_WRITER = 4
|
||||||
|
|
||||||
|
TARGET_AUIDENCES = [
|
||||||
|
(TARGET_USER, "User"),
|
||||||
|
(TARGET_BUSINESS, "Business"),
|
||||||
|
(TARGET_COMMUNITY, "Community"),
|
||||||
|
(TARGET_DEVELOPER, "Developer"),
|
||||||
|
(TARGET_WRITER, "Writer"),
|
||||||
|
]
|
||||||
|
|
||||||
|
target_audience = models.IntegerField(choices=TARGET_AUIDENCES, default=TARGET_USER)
|
||||||
talk_format = models.IntegerField(
|
talk_format = models.IntegerField(
|
||||||
choices=TALK_FORMATS,
|
choices=TALK_FORMATS,
|
||||||
help_text="Please indicate your preferred talk length in the private abstract field below.")
|
help_text="Please indicate your preferred talk length in the private abstract field below.")
|
||||||
|
@ -95,6 +110,15 @@ class SysAdminProposal(Proposal):
|
||||||
|
|
||||||
|
|
||||||
class KernelProposal(Proposal):
|
class KernelProposal(Proposal):
|
||||||
|
TALK_FORMATS = [
|
||||||
|
(1, "Presentation (40-45 min)"),
|
||||||
|
(2, "Short Presentation (20-30 min)"),
|
||||||
|
]
|
||||||
|
|
||||||
|
talk_format = models.IntegerField(
|
||||||
|
choices=TALK_FORMATS,
|
||||||
|
default=1,
|
||||||
|
help_text="Please indicate your preferred talk length in the private abstract field below.")
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = "Kernel Miniconf Proposal"
|
verbose_name = "Kernel Miniconf Proposal"
|
||||||
|
|
Loading…
Reference in a new issue