Skip to content

Commit

Permalink
PR #785 - will be empty after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 25, 2024
1 parent 6342bcd commit c0fb130
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lacommunaute/documentation/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ class CategoryAdmin(admin.ModelAdmin):
@admin.register(Document)
class DocumentAdmin(admin.ModelAdmin):
list_display = ("name", "category")
list_filter = ("category",)
list_filter = ("category", "partner")
search_fields = ("name",)
fields = ("name", "short_description", "description", "image")
fields = (
"name",
"short_description",
"description",
"image",
"category",
"partner",
"certified",
"tags",
)

0 comments on commit c0fb130

Please sign in to comment.