From f8677d424f5bacfaf7e6dcc777f375b4811cfda0 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Wed, 18 May 2022 17:32:40 +0200 Subject: fix bug/typo on data request --- server/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/views.py b/server/views.py index c91db1e..928eac1 100644 --- a/server/views.py +++ b/server/views.py @@ -1478,7 +1478,7 @@ def data_request(request): context["data"] = data elif request.POST["request"] == "email_non_staff": perm = Permission.objects.get(codename="approved") - users_email = User.objects.filter(groups__name=parent_group, user_permission=perm).exclude(groups__name="capi").values_list("email", flat=True) + users_email = User.objects.filter(groups__name=parent_group, user_permissions=perm).exclude(groups__name="capi").values_list("email", flat=True) data = ", ".join(users_email) context["data"] = data elif request.POST["request"] == "data_user": -- cgit v1.2.1