diff --git a/apps/terminal/serializers/session.py b/apps/terminal/serializers/session.py index fdf130210..50b0f9ada 100644 --- a/apps/terminal/serializers/session.py +++ b/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):