Skip to content

Commit

Permalink
Merge pull request #272 from clabs/dev
Browse files Browse the repository at this point in the history
Add admin filter
  • Loading branch information
ethrgeist authored Jun 7, 2024
2 parents 4bee89b + e7aa3e5 commit 847d14d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
31 changes: 16 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/rockon/crew/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ class TeamMemberAdmin(CustomAdminModel):
list_display = ("crewmember", "team", "state", "created_at", "updated_at")
search_fields = ("team", "crewmember")
ordering = ("team", "state")
list_filter = ("team__name",)
list_filter = (
"team__name",
"crewmember__crew__event",
)


admin.site.register(Attendance, AttendanceAdmin)
Expand Down
2 changes: 1 addition & 1 deletion src/rockon/exhibitors/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ExhibitorAssetAdmin(CustomAdminModel):
list_display = ("exhibitor", "asset", "count")
list_filter = ("exhibitor", "asset")
list_filter = ("exhibitor", "asset", "exhibitor__event")
search_fields = ("exhibitor", "asset")


Expand Down

0 comments on commit 847d14d

Please sign in to comment.