Browse Source

fix: 会话管理翻译

pull/7049/head
xinwen 3 years ago committed by 老广
parent
commit
a1221a39fd
  1. 5
      apps/terminal/serializers/session.py

5
apps/terminal/serializers/session.py

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

Loading…
Cancel
Save