#229 Shared users mandatory on admin

* changes mandatory state of users and teams on admin backend to optional (as expected by the model)
* adds team selection to admin backend
This commit is contained in:
2022-11-16 13:27:57 +01:00
parent deb97fbbf3
commit 14fee4474f
7 changed files with 99 additions and 7 deletions

View File

@@ -81,13 +81,15 @@ class EcoAccountAdmin(AbstractCompensationAdmin):
]
filter_horizontal = [
"users"
"users",
"teams",
]
def get_fields(self, request, obj=None):
return super().get_fields(request, obj) + [
"deductable_surface",
"users"
"users",
"teams",
]