Skip to content

Commit

Permalink
Added an author filter in the generic document admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandravaphilips committed Mar 7, 2024
1 parent ae6c7e1 commit 8542670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ class GenericDocumentAdmin(ImportExportMixin, DocumentAdmin):
resource_class = GenericDocumentResource
fieldsets = copy.deepcopy(DocumentAdmin.fieldsets)
list_display = list(DocumentAdmin.list_display) + ["nature"]
list_filter = list(DocumentAdmin.list_filter) + ["nature"]
list_filter = list(DocumentAdmin.list_filter) + ["nature", "authors"]
filter_horizontal = ("authors",)
fieldsets[0][1]["fields"].extend(["authors", "nature"])

Expand Down

0 comments on commit 8542670

Please sign in to comment.