Skip to content

Commit

Permalink
add is_public dataset flag to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Aug 14, 2023
1 parent 91d125f commit 4d1d857
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions hub/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 4d1d857

Please sign in to comment.