Skip to content

Commit

Permalink
Changed cfp talk category descriptions. (#218)
Browse files Browse the repository at this point in the history
* Changed cfp talk category descriptions.

* Needed to modify forms line 122 and test_forms data.
  • Loading branch information
BethanyG authored Mar 19, 2018
1 parent 0752e66 commit a159b17
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
25 changes: 25 additions & 0 deletions pybay/proposals/migrations/0012_auto_20180318_1843.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2018-03-19 01:43
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('proposals', '0011_auto_20180318_0137'),
]

operations = [
migrations.AlterField(
model_name='talkproposal',
name='category',
field=models.CharField(choices=[('python fundamentals & language internals', 'Python Fundamentals & Language Internals'), ('machine learning, ai, & all things data', 'Machine Learning, AI, & All things Data'), ('devops, automation, & testing', 'DevOps, Automation, & Testing'), ('dealing with speed, scale, & performance', 'Dealing with Speed, Scale, & Performance'), ('fun: hacking hardwareengineering a community ', 'Fun: Hacking Hardware/Engineering a Community ')], max_length=100),
),
migrations.AlterField(
model_name='tutorialproposal',
name='category',
field=models.CharField(choices=[('python fundamentals & language internals', 'Python Fundamentals & Language Internals'), ('machine learning, ai, & all things data', 'Machine Learning, AI, & All things Data'), ('devops, automation, & testing', 'DevOps, Automation, & Testing'), ('dealing with speed, scale, & performance', 'Dealing with Speed, Scale, & Performance'), ('fun: hacking hardwareengineering a community ', 'Fun: Hacking Hardware/Engineering a Community ')], max_length=100),
),
]
10 changes: 5 additions & 5 deletions pybay/proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class Proposal(ProposalBase):
]

CATEGORY_CHOICES = [
"Python fundamentals and language internals",
"Machine learning, AI, & all things data",
"DevOps, automation, & testing",
"Hacking hardware with Python",
"Engineering a community"
"Python Fundamentals & Language Internals",
"Machine Learning, AI, & All things Data",
"DevOps, Automation, & Testing",
"Dealing with Speed, Scale, & Performance",
"Fun: Hacking Hardware/Engineering a Community "
]
CATEGORY_CHOICES = [
(c.lower().replace('/', ''), c) for c in CATEGORY_CHOICES
Expand Down
2 changes: 1 addition & 1 deletion pybay/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _get_data(self):
'email': "pirosb3@gmail.com",
'website': "woo.com",
'phone': "+14155289519",
'category': "python fundamentals and language internals",
'category': "python fundamentals & language internals",
'audience_level': 1,
'talk_length': 25,
'speaker_bio': 'wooo',
Expand Down

0 comments on commit a159b17

Please sign in to comment.