Skip to content

Commit

Permalink
Workaround for django 5 filter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nshafer committed Jan 9, 2024
1 parent 145eabe commit d04472a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sandbox/library/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class EditorAdmin(admin.ModelAdmin):
@admin.register(Book)
class BookAdmin(admin.ModelAdmin):
list_display = ('name', 'id', 'reference_id', 'int_reference_id', 'key', 'alt', 'author')
list_filter = ('author',)
list_select_related = ('author',)
list_filter = ('author__name',)
search_fields = ('name', 'reference_id')
ordering = ('reference_id', 'id')

Expand Down

0 comments on commit d04472a

Please sign in to comment.