Changeset - 35bb7102503c
[Not reviewed]
0 4 1
Scott Bragg - 8 years ago 2016-09-27 08:10:41
jsbragg@scriptforge.org
More cfps (#75)

* Law, Testing and Knowledge Miniconf CFP

* Admin registration for latest CFPs
5 files changed with 149 insertions and 4 deletions:
0 comments (0 inline, 0 general)
pinaxcon/proposals/admin.py
Show inline comments
...
 
@@ -16,2 +16,6 @@ from symposion.proposals import models as symposion_models
 
@admin.register(models.GamesProposal)
 
@admin.register(models.TestingProposal)
 
@admin.register(models.KnowledgeProposal)
 
@admin.register(models.LawProposal)
 

	
 
class CategoryAdmin(admin.ModelAdmin):
pinaxcon/proposals/forms.py
Show inline comments
...
 
@@ -7,3 +7,4 @@ from .models import SysAdminProposal, WriteTheDocsProposal, WootconfProposal
 
from .models import KernelProposal, OpenRadioProposal, SecurityProposal
 
from .models import GamesProposal
 
from .models import GamesProposal, TestingProposal, LawProposal
 
from .models import KnowledgeProposal
 

	
...
 
@@ -241 +242,67 @@ class GamesProposalForm(ProposalForm):
 
        }
 

	
 
class TestingProposalForm(ProposalForm):
 

	
 
    class Meta:
 
        model = TestingProposal
 
        fields = [
 
            "title",
 
            "target_audience",  
 
            "abstract",
 
            "private_abstract",
 
            "technical_requirements",
 
            "project",
 
            "project_url",
 
            "recording_release",
 
            "materials_release",
 
        ]
 

	
 
        widgets = {
 
            "abstract" : widgets.AceMarkdownEditor(),
 
            "private_abstract" : widgets.AceMarkdownEditor(),
 
            "technical_requirements" : widgets.AceMarkdownEditor(),
 
        }
 

	
 
class KnowledgeProposalForm(ProposalForm):
 

	
 
    class Meta:
 
        model = KnowledgeProposal
 
        fields = [
 
            "title",
 
            "target_audience",  
 
            "abstract",
 
            "private_abstract",
 
            "technical_requirements",
 
            "project",
 
            "project_url",
 
            "recording_release",
 
            "materials_release",
 
        ]
 

	
 
        widgets = {
 
            "abstract" : widgets.AceMarkdownEditor(),
 
            "private_abstract" : widgets.AceMarkdownEditor(),
 
            "technical_requirements" : widgets.AceMarkdownEditor(),
 
        }
 

	
 
class LawProposalForm(ProposalForm):
 

	
 
    class Meta:
 
        model = LawProposal
 
        fields = [
 
            "title",
 
            "target_audience",  
 
            "abstract",
 
            "private_abstract",
 
            "technical_requirements",
 
            "project",
 
            "project_url",
 
            "recording_release",
 
            "materials_release",
 
        ]
 

	
 
        widgets = {
 
            "abstract" : widgets.AceMarkdownEditor(),
 
            "private_abstract" : widgets.AceMarkdownEditor(),
 
            "technical_requirements" : widgets.AceMarkdownEditor(),
 
        }
pinaxcon/proposals/migrations/0007_knowledgeproposal_lawproposal_testingproposal.py
Show inline comments
 
new file 100644
 
# -*- coding: utf-8 -*-
 
# Generated by Django 1.9.7 on 2016-09-27 07:58
 
from __future__ import unicode_literals
 

	
 
from django.db import migrations, models
 
import django.db.models.deletion
 

	
 

	
 
class Migration(migrations.Migration):
 

	
 
    dependencies = [
 
        ('symposion_proposals', '0001_initial'),
 
        ('proposals', '0006_auto_20160925_0551'),
 
    ]
 

	
 
    operations = [
 
        migrations.CreateModel(
 
            name='KnowledgeProposal',
 
            fields=[
 
                ('proposalbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='symposion_proposals.ProposalBase')),
 
                ('target_audience', models.IntegerField(choices=[(1, b'User'), (2, b'Business'), (3, b'Community'), (4, b'Developer')])),
 
                ('recording_release', models.BooleanField(default=True, help_text=b"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>")),
 
                ('materials_release', models.BooleanField(default=True, help_text=b"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>")),
 
            ],
 
            options={
 
                'verbose_name': 'Open Knowledge Australia Miniconf Proposal',
 
            },
 
            bases=('symposion_proposals.proposalbase',),
 
        ),
 
        migrations.CreateModel(
 
            name='LawProposal',
 
            fields=[
 
                ('proposalbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='symposion_proposals.ProposalBase')),
 
                ('target_audience', models.IntegerField(choices=[(1, b'User'), (2, b'Business'), (3, b'Community'), (4, b'Developer')])),
 
                ('recording_release', models.BooleanField(default=True, help_text=b"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>")),
 
                ('materials_release', models.BooleanField(default=True, help_text=b"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>")),
 
            ],
 
            options={
 
                'verbose_name': 'Open Law and Policy Miniconf Proposal',
 
            },
 
            bases=('symposion_proposals.proposalbase',),
 
        ),
 
        migrations.CreateModel(
 
            name='TestingProposal',
 
            fields=[
 
                ('proposalbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='symposion_proposals.ProposalBase')),
 
                ('target_audience', models.IntegerField(choices=[(1, b'User'), (2, b'Business'), (3, b'Community'), (4, b'Developer')])),
 
                ('recording_release', models.BooleanField(default=True, help_text=b"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>")),
 
                ('materials_release', models.BooleanField(default=True, help_text=b"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>")),
 
            ],
 
            options={
 
                'verbose_name': 'Testing/Automation Miniconf Proposal',
 
            },
 
            bases=('symposion_proposals.proposalbase',),
 
        ),
 
    ]
pinaxcon/proposals/models.py
Show inline comments
...
 
@@ -110,8 +110,8 @@ class GamesProposal(Proposal):
 

	
 
    TYPE_PRESENTATION = 1 
 
    TYPE_PRESENTATION = 1
 
    TYPE_DEMONSTRATION = 2
 
    TYPE_OTHER = 3
 
    
 

 
    TALK_FORMATS = [
 
        (TYPE_PRESENTATION, "Presentation"),  
 
        (TYPE_PRESENTATION, "Presentation"),
 
        (TYPE_DEMONSTRATION, "Demonstration"),
...
 
@@ -124 +124,16 @@ class GamesProposal(Proposal):
 
        verbose_name = "Games and FOSS Miniconf Proposal"
 

	
 
class TestingProposal(Proposal):
 

	
 
    class Meta:
 
        verbose_name = "Testing/Automation Miniconf Proposal"
 

	
 
class KnowledgeProposal(Proposal):
 

	
 
    class Meta:
 
        verbose_name = "Open Knowledge Australia Miniconf Proposal"
 

	
 
class LawProposal(Proposal):
 

	
 
    class Meta:
 
        verbose_name = "Open Law and Policy Miniconf Proposal"
pinaxcon/settings.py
Show inline comments
...
 
@@ -262,2 +262,5 @@ PROPOSAL_FORMS = {
 
    "games-miniconf": "pinaxcon.proposals.forms.GamesProposalForm",
 
    "testing-miniconf": "pinaxcon.proposals.forms.TestingProposalForm",
 
    "knowledge-miniconf": "pinaxcon.proposals.forms.KnowledgeProposalForm",
 
    "lawpolicy-miniconf": "pinaxcon.proposals.forms.LawProposalForm",
 
}
0 comments (0 inline, 0 general)