Changeset - 10b6358b9271
[Not reviewed]
0 2 1
Jamie Lennox - 7 years ago 2017-07-02 12:31:56
jamielennox@gmail.com
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.
3 files changed with 36 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/proposals/forms.py
Show inline comments
...
 
@@ -61,4 +61,6 @@ class MiniconfProposalForm(ProposalForm):
 
            "abstract",
 
            "private_abstract",
 
            "technical_requirements",
 
            "recording_release",
 
            "materials_release",
 
        ]
pinaxcon/proposals/migrations/0003_auto_20170702_2227.py
Show inline comments
 
new file 100644
 
# -*- 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),
 
        ),
 
    ]
pinaxcon/proposals/models.py
Show inline comments
...
 
@@ -52,7 +52,10 @@ class TutorialProposal(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:
 
        verbose_name = "miniconf proposal"
0 comments (0 inline, 0 general)