Browse Source

perf: acl username unified

pull/7102/head
feng626 3 years ago committed by 老广
parent
commit
0eedda748a
  1. 2
      apps/acls/serializers/login_acl.py

2
apps/acls/serializers/login_acl.py

@ -11,7 +11,7 @@ common_help_text = _('Format for comma-delimited string, with * indicating a mat
class LoginACLSerializer(BulkModelSerializer):
user_display = serializers.ReadOnlyField(source='user.name', label=_('Username'))
user_display = serializers.ReadOnlyField(source='user.username', label=_('Username'))
reviewers_display = serializers.SerializerMethodField(label=_('Reviewers'))
action_display = serializers.ReadOnlyField(source='get_action_display', label=_('Action'))
reviewers_amount = serializers.IntegerField(read_only=True, source='reviewers.count')

Loading…
Cancel
Save