jumpserver/apps/settings/serializers/sms.py

8 lines
313 B
Python

from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class SMSBackendSerializer(serializers.Serializer):
name = serializers.CharField(max_length=256, required=True, label=_('Name'))
label = serializers.CharField(max_length=256, required=True, label=_('Label'))