mirror of https://github.com/jumpserver/jumpserver
parent
5494d2fd60
commit
cd3c3eeaf2
|
@ -53,6 +53,3 @@ class LoginACLSerializer(BulkModelSerializer):
|
||||||
|
|
||||||
def get_rules_serializer(self):
|
def get_rules_serializer(self):
|
||||||
return RuleSerializer()
|
return RuleSerializer()
|
||||||
|
|
||||||
def get_reviewers_display(self, obj):
|
|
||||||
return ','.join([str(user) for user in obj.reviewers.all()])
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
from rest_framework import serializers
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
|
||||||
|
|
||||||
|
|
||||||
class CategoryDisplayMixin(serializers.Serializer):
|
|
||||||
category_display = serializers.ReadOnlyField(
|
|
||||||
source='get_category_display', label=_("Category display")
|
|
||||||
)
|
|
||||||
type_display = serializers.ReadOnlyField(
|
|
||||||
source='get_type_display', label=_("Type display")
|
|
||||||
)
|
|
Loading…
Reference in New Issue