Skip to content

Commit

Permalink
Add listed, created_at, published_at filters for document admin
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Jan 17, 2025
1 parent 78971c8 commit 32fad57
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/filingcabinet/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,16 @@ class DocumentBaseAdmin(admin.ModelAdmin):
"pending",
"processed_pages_percentage",
)
list_filter = ("pending", "public", "allow_annotation", "portal", HasTablesFilter)
list_filter = (
"pending",
"public",
"listed",
"allow_annotation",
"portal",
HasTablesFilter,
"created_at",
"published_at",
)
raw_id_fields = ("user",)
readonly_fields = ("uid", "public", "pending", "content_hash")
prepopulated_fields = {"slug": ("title",)}
Expand Down

0 comments on commit 32fad57

Please sign in to comment.