19 lines
444 B
Python
19 lines
444 B
Python
"""Translation classes."""
|
|
|
|
from modeltranslation.translator import register, TranslationOptions
|
|
from kaehmy.models import PresetRole, CustomRole
|
|
|
|
|
|
@register(PresetRole)
|
|
class PresetRoleTranslationOptions(TranslationOptions):
|
|
""" Class for PresetRole translation options"""
|
|
|
|
fields = ()
|
|
|
|
|
|
@register(CustomRole)
|
|
class CustomRoleTranslationOptions(TranslationOptions):
|
|
""" Class for CustomROle translation options"""
|
|
|
|
fields = ()
|