Z-axis geometry upload fix
* adds clamping of 3D geometries to 2D geometries if uploaded using the map importer * extends tests for payment-document linkage * fixes bug in team-admin selection where autocomplete could not be resolved properly
This commit is contained in:
@@ -17,15 +17,15 @@ class TeamAdminAutocomplete(Select2QuerySetView):
|
||||
def get_queryset(self):
|
||||
if self.request.user.is_anonymous:
|
||||
return User.objects.none()
|
||||
|
||||
qs = User.objects.filter(
|
||||
id__in=self.forwarded.get("members", [])
|
||||
).exclude(
|
||||
id__in=self.forwarded.get("admins", [])
|
||||
)
|
||||
if self.q:
|
||||
# Due to privacy concerns only a full username match will return the proper user entry
|
||||
qs = qs.filter(
|
||||
name__icontains=self.q
|
||||
username__icontains=self.q
|
||||
)
|
||||
qs = qs.order_by(
|
||||
"username"
|
||||
|
||||
Reference in New Issue
Block a user