From 16e6aeef587784cb0c4ff42277657fd34eee7ba6 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 24 Aug 2023 12:40:54 +0200 Subject: [PATCH 1/1] publish log in admin --- src/depot/admin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/depot/admin.py b/src/depot/admin.py index 3ad1fa30..ce9cc3bc 100644 --- a/src/depot/admin.py +++ b/src/depot/admin.py @@ -24,3 +24,10 @@ class ShopAdmin(admin.ModelAdmin): MediaInsertTextInline, PriceLevelInline, ] + +@admin.register(models.ShopBookPublish) +class ShopBookPublishAdmin(admin.ModelAdmin): + list_display = ['created_at', 'book', 'user', 'shop', 'status', 'started_at', 'finished_at'] + list_filter = ['status', 'shop'] + search_fields = ['book', 'user'] + date_hierarchy = 'started_at' -- 2.20.1