Write data migrations for kaehmys
This commit is contained in:
@@ -12,7 +12,7 @@ class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('webapp', '0038_auto_20180126_0031'),
|
||||
('webapp', '0037_auto_20180125_2131'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Translation classes."""
|
||||
|
||||
from modeltranslation.translator import register, TranslationOptions
|
||||
from kaehmy.models import PresetRole
|
||||
from kaehmy.models import PresetRole, CustomRole
|
||||
|
||||
|
||||
@register(PresetRole)
|
||||
@@ -9,3 +9,10 @@ class PresetRoleTranslationOptions(TranslationOptions):
|
||||
""" Class for PresetRole translation options"""
|
||||
|
||||
fields = ()
|
||||
|
||||
|
||||
@register(CustomRole)
|
||||
class CustomRoleTranslationOptions(TranslationOptions):
|
||||
""" Class for CustomROle translation options"""
|
||||
|
||||
fields = ()
|
||||
Reference in New Issue
Block a user