#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:
mpeltriaux committed 2022-11-16 13:27:57 +01:00
1 parent 266f2fcdf6
commit 83137f0e58
7 files changed
+99 -7

No files matched your search

+3 -1
View File
@@ -14,7 +14,8 @@ class InterventionAdmin(BaseObjectAdmin):
]
filter_horizontal = [
"users"
"users",
"teams",
]
def get_fields(self, request, obj=None):
@@ -25,6 +26,7 @@ class InterventionAdmin(BaseObjectAdmin):
"checked",
"recorded",
"users",
"teams",
"geometry",
]