You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jumpserver/apps/users/serializers/preference/preference.py

21 lines
465 B

from django.utils.translation import gettext_lazy as _
from settings.serializers import BaseSerializerWithFieldLabel
from .koko import KokoSerializer
from .lina import LinaSerializer
from .luna import LunaSerializer
__all__ = [
'PreferenceSerializer',
]
class PreferenceSerializer(
BaseSerializerWithFieldLabel,
LinaSerializer,
LunaSerializer,
KokoSerializer
):
PREFIX_TITLE = _('Preference')
CACHE_KEY = 'PREFERENCE_FIELDS_MAPPING'