forked from mozilla/pontoon
-
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.
Add badge-related fields to the UserProfile model (mozilla#3397)
- Loading branch information
1 parent
174a951
commit b8a2030
Showing
2 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
pontoon/base/migrations/0066_userprofile_community_builder_level_and_more.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,53 @@ | ||
# Generated by Django 4.2.16 on 2024-10-02 21:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("base", "0065_fix_projectlocale_permissions"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="community_builder_level", | ||
field=models.IntegerField( | ||
choices=[ | ||
(0, "No Badge"), | ||
(1, "Community Builder Level 1"), | ||
(2, "Community Builder Level 2"), | ||
(3, "Community Builder Level 3"), | ||
], | ||
default=0, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="review_master_level", | ||
field=models.IntegerField( | ||
choices=[ | ||
(0, "No Badge"), | ||
(1, "Review Master Level 1"), | ||
(2, "Review Master Level 2"), | ||
(3, "Review Master Level 3"), | ||
(4, "Review Master Level 4"), | ||
], | ||
default=0, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="translation_champion_level", | ||
field=models.IntegerField( | ||
choices=[ | ||
(0, "No Badge"), | ||
(1, "Translation Champion Level 1"), | ||
(2, "Translation Champion Level 2"), | ||
(3, "Translation Champion Level 3"), | ||
(4, "Translation Champion Level 4"), | ||
], | ||
default=0, | ||
), | ||
), | ||
] |
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