From e5051ab018710075049170aa6bd45a1e0100fa21 Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <ynerant@crans.org>
Date: Sun, 5 Sep 2021 19:32:34 +0200
Subject: [PATCH] Linting

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
---
 apps/wei/views.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/apps/wei/views.py b/apps/wei/views.py
index a9d0c865..cb8e3646 100644
--- a/apps/wei/views.py
+++ b/apps/wei/views.py
@@ -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,
-- 
GitLab