-
Notifications
You must be signed in to change notification settings - Fork 107
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 #1131 from pycontw/feat/1119
Refactoring model options from models.py (issue#1119)
- Loading branch information
Showing
10 changed files
with
331 additions
and
271 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
CATEGORY_CHOICES = ( | ||
('APPL', _('Application')), | ||
('PRAC', _('Best Practices & Patterns')), | ||
('COM', _('Community')), | ||
('DB', _('Databases')), | ||
('DATA', _('Data Analysis')), | ||
('EDU', _('Education')), | ||
('EMBED', _('Embedded Systems')), | ||
('FIN', _('FinTech')), | ||
('IOT', _('Internet of Things')), | ||
('GAME', _('Gaming')), | ||
('GRAPH', _('Graphics')), | ||
('ML', _('Machine Learning')), | ||
('NLP', _('Natural Language Processing')), | ||
('CORE', _('Python Core (language, stdlib, etc.)')), | ||
('TOOL', _('Project Tooling')), | ||
('SCI', _('Science')), | ||
('SEC', _('Security')), | ||
('ADMIN', _('Systems Administration')), | ||
('TEST', _('Testing')), | ||
('WEB', _('Web Frameworks')), | ||
('OTHER', _('Other')), | ||
) | ||
|
||
LANGUAGE_CHOICES = ( | ||
('ENEN', _('English talk')), | ||
('ZHEN', _('Chinese talk w. English slides')), | ||
('ZHZH', _('Chinese talk w. Chinese slides')), | ||
('TAI', _('Taiwanese Hokkien')), | ||
) | ||
|
||
PYTHON_LVL_CHOICES = ( | ||
('NOVICE', _('Novice')), | ||
('INTERMEDIATE', _('Intermediate')), | ||
('EXPERIENCED', _('Experienced')), | ||
) | ||
|
||
PREFER_TIME_CHOICES = ( | ||
('DAY_ONE_MORNING', _('Day 1, September 2nd, 2023 Morning')), | ||
('DAY_ONE_AFTERNOON', _('Day 1, September 2nd, 2023 Afternoon')), | ||
('DAY_TWO_MORNING', _('Day 2, September 3rd, 2023 Morning')), | ||
('DAY_TWO_AFTERNOON', _('Day 2, September 3rd, 2023 Afternoon')), | ||
) | ||
|
||
RECORDING_POLICY_CHOICES = ( | ||
(True, _('Yes')), | ||
(False, _('No')) | ||
) | ||
|
||
LIVING_IN_TAIWAN_CHOICES = ( | ||
(True, _('Yes')), | ||
(False, _('No')) | ||
) | ||
|
||
LIVE_STREAM_POLICY_CHOICES = ( | ||
(True, _('Yes')), | ||
(False, _('No')) | ||
) | ||
|
||
REFERRING_POLICY_CHOICES = ( | ||
(True, _('Yes')), | ||
(False, _('No')) | ||
) | ||
|
||
ATTEND_IN_PERSON = ( | ||
(True, _('Yes')), | ||
(False, _('No')), | ||
) |
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,18 @@ | ||
# Generated by Django 3.1.7 on 2023-02-26 14:33 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('events', '0048_add_willing_to_attend_in_person'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='sponsoredevent', | ||
old_name='willing_to_attend_in_person', | ||
new_name='attend_in_person', | ||
), | ||
] |
Oops, something went wrong.