Skip to content

Commit

Permalink
add admin fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Dec 5, 2023
1 parent 6285236 commit ff3cddb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,24 @@ class LogicPuzzleAdmin(admin.ModelAdmin):
list_display = (
"qr_index",
"hint",
"hunt"
)
search_fields = (
"hint",
"qr_index",
"hunt"
)
list_filter = ("hunt",)
ordering = ("qr_index",)



class TeamAdmin(admin.ModelAdmin):
readonly_fields = ("path",)
inlines = [
InviteInLine,
]
search_fields = ("name", "members__username")
list_filter = ("hunt",)
list_filter = ("hunt", "name")


@admin.display(description="Path")
def path(self, team):
Expand Down

0 comments on commit ff3cddb

Please sign in to comment.