summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorPaolo Melchiorre <paolo@melchiorre.org>2022-12-25 17:04:59 +0100
committerGitHub <noreply@github.com>2022-12-25 10:04:59 -0600
commita59d6f55baca966cee3b6f31416fe8e6c42721ad (patch)
tree5558c10922be8a921dbcb46e47b4dd374724df08 /accounts
parent5b58b15c2113a28c2edc452ad6d04c8915acf148 (diff)
Fixed #1293 -- Modernize to Django 3.2/Python 3.8 (#1294)
Diffstat (limited to 'accounts')
-rw-r--r--accounts/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/accounts/views.py b/accounts/views.py
index b287d31f..5e8a8643 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -54,9 +54,7 @@ def json_user_info(request):
De-duplication on GET['user'] is performed since I don't want to have to
think about how best to do it in JavaScript :)
"""
- userinfo = dict(
- [(name, get_user_info(name)) for name in set(request.GET.getlist("user"))]
- )
+ userinfo = {name: get_user_info(name) for name in set(request.GET.getlist("user"))}
return JSONResponse(userinfo)