fix: 会话管理翻译

pull/7049/head
xinwen 3 years ago committed by 老广
parent 8c118b6f47
commit a1221a39fd

@ -42,13 +42,10 @@ class SessionSerializer(BulkOrgResourceModelSerializer):
class SessionDisplaySerializer(SessionSerializer): class SessionDisplaySerializer(SessionSerializer):
command_amount = serializers.IntegerField(read_only=True) command_amount = serializers.IntegerField(read_only=True, label=_('Command amount'))
class Meta(SessionSerializer.Meta): class Meta(SessionSerializer.Meta):
fields = SessionSerializer.Meta.fields + ['command_amount'] fields = SessionSerializer.Meta.fields + ['command_amount']
extra_kwargs = {
'command_amount': {'label': _('Command amount')},
}
class ReplaySerializer(serializers.Serializer): class ReplaySerializer(serializers.Serializer):

Loading…
Cancel
Save