Serialize archived column in summary view

This commit is contained in:
davelopez
2023-06-19 09:39:54 +02:00
parent b4296c7351
commit 55f2db02eb
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -559,6 +559,7 @@ class HistorySerializer(sharable.SharableModelSerializer, deletable.PurgableSeri
"name",
"deleted",
"purged",
"archived",
"count",
"url",
# TODO: why these?
+5
View File
@@ -1038,6 +1038,11 @@ class HistorySummary(HistoryBase):
title="Purged",
description="Whether this item has been permanently removed.",
)
archived: bool = Field(
...,
title="Archived",
description="Whether this item has been archived and is no longer active.",
)
url: RelativeUrl = RelativeUrlField
published: bool = Field(
...,