Skip to content

Commit

Permalink
fix(sponsor): adjust level for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanYeh committed Jul 29, 2024
1 parent 20a3796 commit 90fb85b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PyCon TW\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-27 23:30+0800\n"
"POT-Creation-Date: 2024-07-29 19:17+0800\n"
"PO-Revision-Date: 2022-07-11 02:23+0800\n"
"Last-Translator: Tom Chen <[email protected]>\n"
"Language-Team: English (United States) (http://www.transifex.com/pycon-"
Expand Down
2 changes: 1 addition & 1 deletion src/locale/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PyCon TW\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-27 23:30+0800\n"
"POT-Creation-Date: 2024-07-29 19:17+0800\n"
"PO-Revision-Date: 2022-07-11 02:25+0800\n"
"Last-Translator: Tom Chen <[email protected]>\n"
"Language-Team: Chinese Traditional (http://www.transifex.com/pycon-taiwan/"
Expand Down
18 changes: 18 additions & 0 deletions src/sponsors/migrations/0035_alter_sponsor_level.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.25 on 2024-07-29 11:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sponsors', '0034_alter_sponsor_level'),
]

operations = [
migrations.AlterField(
model_name='sponsor',
name='level',
field=models.SmallIntegerField(choices=[(0, 'diamond'), (1, 'platinum'), (2, 'gold'), (3, 'silver'), (4, 'bronze'), (5, 'special'), (6, 'special-thanks'), (7, 'organizer'), (8, 'co-organizer'), (9, 'sprint-co-organizer')], verbose_name='level'),
),
]
20 changes: 10 additions & 10 deletions src/sponsors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ class Sponsor(ConferenceRelated):
)

class Level:
DIAMOND = 1
PLATINUM = 2
GOLD = 3
SILVER = 4
BRONZE = 5
SPECIAL = 6
SPECIAL_THANKS = 7
ORGANIZER = 8
COORGANIZER = 9
SPRINT_COORGANIZER = 10
DIAMOND = 0
PLATINUM = 1
GOLD = 2
SILVER = 3
BRONZE = 4
SPECIAL = 5
SPECIAL_THANKS = 6
ORGANIZER = 7
COORGANIZER = 8
SPRINT_COORGANIZER = 9

# Backward compatibility.
PARTNER = COORGANIZER
Expand Down

0 comments on commit 90fb85b

Please sign in to comment.