mirror of https://github.com/jumpserver/jumpserver
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.
12 lines
340 B
12 lines
340 B
3 months ago
|
from django.utils.translation import gettext_lazy as _
|
||
|
from rest_framework import serializers
|
||
|
|
||
|
from common.serializers.fields import LabeledChoiceField
|
||
|
from ..const import Scope
|
||
|
|
||
|
|
||
|
class ScopeSerializerMixin(serializers.Serializer):
|
||
|
scope = LabeledChoiceField(
|
||
|
choices=Scope.choices, default=Scope.public, label=_("Scope")
|
||
|
)
|