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.
This commit is contained in:
Jamie Lennox 2017-07-02 22:28:29 +10:00
parent 7262ed8943
commit 10b6358b92
3 changed files with 36 additions and 1 deletions

View file

@ -61,4 +61,6 @@ class MiniconfProposalForm(ProposalForm):
"abstract", "abstract",
"private_abstract", "private_abstract",
"technical_requirements", "technical_requirements",
"recording_release",
"materials_release",
] ]

View file

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-02 12:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('proposals', '0002_auto_20170702_1140'),
]
operations = [
migrations.AddField(
model_name='miniconfproposal',
name='materials_release',
field=models.BooleanField(default=True, help_text="I allow Linux Australia to release any other material (such as slides) from presentations covered by this proposal, under the <a href='https://creativecommons.org/licenses/by-sa/3.0/au/deed.en'> Creative Commons Attribution-Share Alike Australia 3.0 Licence</a>"),
),
migrations.AddField(
model_name='miniconfproposal',
name='recording_release',
field=models.BooleanField(default=True, help_text="I allow Linux Australia to release any recordings of presentations covered by this proposal, under the <a href='https://creativecommons.org/licenses/by-sa/3.0/au/deed.en'> Creative Commons Attribution-Share Alike Australia 3.0 Licence</a>"),
),
migrations.AddField(
model_name='miniconfproposal',
name='target_audience',
field=models.IntegerField(choices=[(1, 'User'), (2, 'Business'), (3, 'Community'), (4, 'Developer')], default=4),
),
]

View file

@ -52,7 +52,10 @@ class TutorialProposal(Proposal):
verbose_name = "tutorial proposal" verbose_name = "tutorial proposal"
class MiniconfProposal(ProposalBase): class MiniconfProposal(Proposal):
target_audience = models.IntegerField(choices=Proposal.TARGET_AUIDENCES,
default=Proposal.TARGET_DEVELOPER)
class Meta: class Meta:
verbose_name = "miniconf proposal" verbose_name = "miniconf proposal"