From: Radek Czajka Date: Thu, 24 Aug 2023 10:40:54 +0000 (+0200) Subject: publish log in admin X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/16e6aeef587784cb0c4ff42277657fd34eee7ba6?ds=inline publish log in admin --- 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'