From ff187581c9d0aaa6c1aae3697d5adfc9ac76d360 Mon Sep 17 00:00:00 2001
From: Alexandre Iooss <erdnaxe@crans.org>
Date: Thu, 3 Sep 2020 21:21:09 +0200
Subject: [PATCH] Remove useless blank lines and spaces in api app

---
 apps/api/serializers.py | 1 +
 apps/api/viewsets.py    | 6 +-----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/apps/api/serializers.py b/apps/api/serializers.py
index 1f658217..d59bdc43 100644
--- a/apps/api/serializers.py
+++ b/apps/api/serializers.py
@@ -6,6 +6,7 @@ from django.contrib.contenttypes.models import ContentType
 from django.contrib.auth.models import User
 from rest_framework.serializers import ModelSerializer
 
+
 class UserSerializer(ModelSerializer):
     """
     REST API Serializer for Users.
diff --git a/apps/api/viewsets.py b/apps/api/viewsets.py
index 825082c0..f7d1e481 100644
--- a/apps/api/viewsets.py
+++ b/apps/api/viewsets.py
@@ -6,11 +6,8 @@ from django_filters.rest_framework import DjangoFilterBackend
 from django.db.models import Q
 from django.conf import settings
 from django.contrib.auth.models import User
-
 from rest_framework.viewsets import ReadOnlyModelViewSet, ModelViewSet
-
 from permission.backends import PermissionBackend
-
 from note_kfet.middlewares import get_current_session
 from note.models import Alias
 
@@ -47,7 +44,6 @@ class ReadOnlyProtectedModelViewSet(ReadOnlyModelViewSet):
         return self.model.objects.filter(PermissionBackend.filter_queryset(user, self.model, "view")).distinct()
 
 
-
 class UserViewSet(ReadProtectedModelViewSet):
     """
     REST API View set.
@@ -67,7 +63,7 @@ class UserViewSet(ReadProtectedModelViewSet):
 
         if "search" in self.request.GET:
             pattern = self.request.GET["search"]
-            
+
             # We match first a user by its username, then if an alias is matched without normalization
             # And finally if the normalized pattern matches a normalized alias.
             queryset = queryset.filter(
-- 
GitLab