Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido authored Nov 30, 2024
1 parent 2eff8c2 commit b17a873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miller/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class MentionAdmin(admin.ModelAdmin):

class CaptionAdmin(admin.ModelAdmin):
list_filter = ["story", "document"]
search_fields = ["story", "document"]
search_fields = ["story__slug", "story__title", "document__slug", "document__title"]
autocomplete_fields = ["story", "document"]
ordering = ["-date_created"]
list_display = ["story", "document", "date_created"]
Expand Down

0 comments on commit b17a873

Please sign in to comment.