Skip to content
Snippets Groups Projects
Verified Commit e5051ab0 authored by ynerant's avatar ynerant
Browse files

Linting


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent bb69627a
No related branches found
No related tags found
1 merge request!175Amélirations questionnaire WEI
Pipeline #9044 passed with stages
in 16 minutes and 43 seconds
......@@ -492,8 +492,8 @@ class WEIRegister1AView(ProtectQuerysetMixin, ProtectedCreateView):
else:
# To avoid unique validation issues, we use an account that can't join the WEI.
# In development mode, the note account may not exist, we use a random user (may fail)
user = User.objects.get(username="note") if User.objects.filter(username="note").exists() \
else User.objects.first()
user = User.objects.get(username="note") \
if User.objects.filter(username="note").exists() else User.objects.first()
return WEIRegistration(
wei=wei,
user=user,
......@@ -567,8 +567,8 @@ class WEIRegister2AView(ProtectQuerysetMixin, ProtectedCreateView):
else:
# To avoid unique validation issues, we use an account that can't join the WEI.
# In development mode, the note account may not exist, we use a random user (may fail)
user = User.objects.get(username="note") if User.objects.filter(username="note").exists() \
else User.objects.first()
user = User.objects.get(username="note") \
if User.objects.filter(username="note").exists() else User.objects.first()
return WEIRegistration(
wei=wei,
user=user,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment