Skip to content

Commit

Permalink
add a filter to show qr codes not belonging to a hunt (improve in #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 10, 2023
1 parent adbd303 commit 1ef0948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class QrCodeAdmin(admin.ModelAdmin):
]
readonly_fields = ["url", "key", "image_tag"]
list_display = ["location", "url"]
list_filter = ("hunt__name",)
list_filter = ("hunt__name", ("hunt__name", admin.EmptyFieldListFilter,))
inlines = [HintsInLine]
form = QrCodeAdminForm

Expand Down

0 comments on commit 1ef0948

Please sign in to comment.