Skip to content

Commit

Permalink
feat(admin): add search for certificates in the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
zyv committed Nov 4, 2023
1 parent 5322ded commit 5cb03ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logbook/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ class PilotAdmin(admin.ModelAdmin):
@admin.register(Certificate)
class CertificateAdmin(admin.ModelAdmin):
list_display = ("name", "number", "issue_date", "valid_until", "authority", "supersedes")
search_fields = ("name", "number", "authority")
save_as = True

0 comments on commit 5cb03ed

Please sign in to comment.