From 4d1d857314d3c204c8c9180fe0912154d89bb245 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 28 Jun 2023 13:54:43 +0100 Subject: [PATCH] add is_public dataset flag to admin --- hub/admin.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hub/admin.py b/hub/admin.py index 84430abac..b3a918e85 100644 --- a/hub/admin.py +++ b/hub/admin.py @@ -42,9 +42,16 @@ class DataSetDataTypeInline(admin.StackedInline): @admin.register(DataSet) class DataSetAdmin(admin.ModelAdmin): - list_display = ("__str__", "description", "category", "order", "featured") - list_editable = ("order", "featured") - list_filter = ("category", "featured", "data_type") + list_display = ( + "__str__", + "description", + "category", + "order", + "featured", + "is_public", + ) + list_editable = ("order", "featured", "is_public") + list_filter = ("category", "featured", "data_type", "is_public") ordering = ("order", "name") search_fields = ["name", "description", "source"]