Write data migrations for kaehmys
This commit is contained in:
@@ -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