2023-09-11 06:38:07 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from rest_framework import serializers
|
|
|
|
|
|
|
|
from users.const import FileNameConflictResolution
|
|
|
|
|
|
|
|
|
|
|
|
class BasicSerializer(serializers.Serializer):
|
|
|
|
file_name_conflict_resolution = serializers.ChoiceField(
|
|
|
|
FileNameConflictResolution.choices, default=FileNameConflictResolution.REPLACE,
|
|
|
|
required=False, label=_('File name conflict resolution')
|
|
|
|
)
|
2023-10-09 07:40:54 +00:00
|
|
|
terminal_theme_name = serializers.CharField(
|
2023-10-09 11:14:43 +00:00
|
|
|
max_length=128, required=False, default='Default',
|
|
|
|
label=_('Terminal theme name')
|
|
|
|
)
|
2023-09-11 06:38:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
class KokoSerializer(serializers.Serializer):
|
|
|
|
basic = BasicSerializer(required=False, label=_('Basic'))
|