Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bug/too_many_fields' into bug/to…
Browse files Browse the repository at this point in the history
…o_many_fields
  • Loading branch information
lakridserne committed Oct 7, 2024
2 parents 03f006b + f1efdf4 commit 8d8d185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions members/admin/department_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class DepartmentAdmin(admin.ModelAdmin):
"closed_dtm",
"has_waiting_list",
)
autocomplete_fields = ("union",)
raw_id_fields = ("union",)
search_fields = (
"name",
Expand Down
1 change: 1 addition & 0 deletions members/admin/union_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class UnionAdmin(admin.ModelAdmin):
"founded_at",
"closed_at",
)
search_fields = ("name",)
filter_horizontal = ["board_members"]
raw_id_fields = ("chairman", "second_chair", "cashier", "secretary")

Expand Down

0 comments on commit 8d8d185

Please sign in to comment.