fix: 修改命令timestamp_display只读

pull/8060/merge
Jiangjie.Bai 2022-04-14 14:27:43 +08:00 committed by Jiangjie.Bai
parent c240a471dc
commit 6d8e8856ac
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class SessionCommandSerializer(SimpleSessionCommandSerializer):
output = serializers.CharField(max_length=2048, allow_blank=True, label=_("Output"))
risk_level_display = serializers.SerializerMethodField(label=_('Risk level display'))
timestamp = serializers.IntegerField(label=_('Timestamp'))
timestamp_display = serializers.DateTimeField(label=_('Datetime'))
timestamp_display = serializers.DateTimeField(read_only=True, label=_('Datetime'))
remote_addr = serializers.CharField(read_only=True, label=_('Remote Address'))
@staticmethod