From b1c70090057bacbedb473c1ae4050cc01190fd2e Mon Sep 17 00:00:00 2001 From: SilviaAmAm Date: Thu, 23 May 2024 10:48:20 +0200 Subject: [PATCH] :sparkles: [#51] Return 'created' field for the destruction list --- backend/src/openarchiefbeheer/destruction/admin.py | 2 +- backend/src/openarchiefbeheer/destruction/api/serializers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/openarchiefbeheer/destruction/admin.py b/backend/src/openarchiefbeheer/destruction/admin.py index e6afee290..2178f3f17 100644 --- a/backend/src/openarchiefbeheer/destruction/admin.py +++ b/backend/src/openarchiefbeheer/destruction/admin.py @@ -5,7 +5,7 @@ @admin.register(DestructionList) class DestructionListAdmin(admin.ModelAdmin): - list_display = ("name", "status", "end") + list_display = ("name", "status", "created", "end") list_filter = ("status", "assignee") search_fields = ("name",) diff --git a/backend/src/openarchiefbeheer/destruction/api/serializers.py b/backend/src/openarchiefbeheer/destruction/api/serializers.py index 2f76a1a4c..8e4fb1b3d 100644 --- a/backend/src/openarchiefbeheer/destruction/api/serializers.py +++ b/backend/src/openarchiefbeheer/destruction/api/serializers.py @@ -124,4 +124,5 @@ class Meta: "assignees", "items", "status", + "created", )