Write data migrations for kaehmys

This commit is contained in:
Jan Tuomi
2018-01-28 23:22:54 +02:00
parent 661dc84973
commit ce1f4eb7c9
5 changed files with 98 additions and 4 deletions
+8 -1
View File
@@ -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 = ()