forked from eldarion/pycon-israel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eldarion#7 from MeirKriheli/cfp-fields
Call for proposals additional fields
- Loading branch information
Showing
8 changed files
with
210 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"model": "proposals.targetaudience", | ||
"pk": 1, | ||
"fields": { | ||
"name": "Developers" | ||
} | ||
}, | ||
{ | ||
"model": "proposals.targetaudience", | ||
"pk": 2, | ||
"fields": { | ||
"name": "Users" | ||
} | ||
}, | ||
{ | ||
"model": "proposals.targetaudience", | ||
"pk": 3, | ||
"fields": { | ||
"name": "Integrators" | ||
} | ||
}, | ||
{ | ||
"model": "proposals.targetaudience", | ||
"pk": 4, | ||
"fields": { | ||
"name": "System administrators" | ||
} | ||
}, | ||
{ | ||
"model": "proposals.targetaudience", | ||
"pk": 5, | ||
"fields": { | ||
"name": "Other" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
from django.contrib import admin | ||
|
||
from .models import TalkProposal, TutorialProposal | ||
from .models import TalkProposal, TutorialProposal, TargetAudience | ||
|
||
|
||
admin.site.register(TargetAudience) | ||
admin.site.register(TalkProposal) | ||
admin.site.register(TutorialProposal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Generated by Django 2.0.1 on 2018-03-16 09:24 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('proposals', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TargetAudience', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=30)), | ||
], | ||
options={ | ||
'verbose_name': 'Target Audience', | ||
'verbose_name_plural': 'Target Audiences', | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='duration', | ||
field=models.DurationField(choices=[(datetime.timedelta(0, 1500), 'Standard 25 minutes talk.'), (datetime.timedelta(0, 2400), 'Long 40 minutes talk.'), (datetime.timedelta(0, 12600), 'Half day workshop/sprint (3.5 hours net).'), (datetime.timedelta(0, 25200), 'Full day workshop/sprint (7 hours net).')], default=datetime.timedelta(0, 1500), verbose_name='Session Duration'), | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='language', | ||
field=models.CharField(choices=[('en', 'English'), ('he', 'Hebrew')], default='en', max_length=5, verbose_name='Proposal Language'), | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='second_language', | ||
field=models.CharField(blank=True, choices=[('en', 'English'), ('he', 'Hebrew')], max_length=5, verbose_name='Propsal Lanugauge - 2nd choice'), | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='specific_props', | ||
field=models.CharField(blank=True, help_text='Any Specific Props Needed?', max_length=200, verbose_name='Specific Props'), | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='target_audience_other', | ||
field=models.CharField(blank=True, max_length=200, verbose_name='Other target audience'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='duration', | ||
field=models.DurationField(choices=[(datetime.timedelta(0, 1500), 'Standard 25 minutes talk.'), (datetime.timedelta(0, 2400), 'Long 40 minutes talk.'), (datetime.timedelta(0, 12600), 'Half day workshop/sprint (3.5 hours net).'), (datetime.timedelta(0, 25200), 'Full day workshop/sprint (7 hours net).')], default=datetime.timedelta(0, 1500), verbose_name='Session Duration'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='language', | ||
field=models.CharField(choices=[('en', 'English'), ('he', 'Hebrew')], default='en', max_length=5, verbose_name='Proposal Language'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='second_language', | ||
field=models.CharField(blank=True, choices=[('en', 'English'), ('he', 'Hebrew')], max_length=5, verbose_name='Propsal Lanugauge - 2nd choice'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='specific_props', | ||
field=models.CharField(blank=True, help_text='Any Specific Props Needed?', max_length=200, verbose_name='Specific Props'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='target_audience_other', | ||
field=models.CharField(blank=True, max_length=200, verbose_name='Other target audience'), | ||
), | ||
migrations.AddField( | ||
model_name='talkproposal', | ||
name='target_audience', | ||
field=models.ManyToManyField(related_name='talkproposals', to='proposals.TargetAudience', verbose_name='Target Audience'), | ||
), | ||
migrations.AddField( | ||
model_name='tutorialproposal', | ||
name='target_audience', | ||
field=models.ManyToManyField(related_name='tutorialproposals', to='proposals.TargetAudience', verbose_name='Target Audience'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
ilpycon/symposion/speakers/migrations/0002_auto_20180316_0809.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.0.1 on 2018-03-16 08:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('symposion_speakers', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='speaker', | ||
name='financial_assistance', | ||
field=models.BooleanField(default=False, verbose_name='Financial Assistance Needed?'), | ||
), | ||
migrations.AddField( | ||
model_name='speaker', | ||
name='phone_number', | ||
field=models.CharField(blank=True, max_length=20, null=True, verbose_name='Contact Phone number'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters