From 02817c5626450d67a037b8482ccd8ba45bd487d1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 20 Mar 2020 02:20:13 +0100 Subject: [PATCH] Fix CI --- apps/logs/signals.py | 3 ++- apps/note/views.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/logs/signals.py b/apps/logs/signals.py index a7cf9a47..43fc1e13 100644 --- a/apps/logs/signals.py +++ b/apps/logs/signals.py @@ -4,12 +4,13 @@ from django.contrib.contenttypes.models import ContentType from rest_framework.renderers import JSONRenderer from rest_framework.serializers import ModelSerializer -import getpass from note.models import NoteUser, Alias from note_kfet.middlewares import get_current_authenticated_user, get_current_ip from .models import Changelog +import getpass + # Ces modèles ne nécessitent pas de logs EXCLUDED = [ diff --git a/apps/note/views.py b/apps/note/views.py index 0b940666..bcf679a9 100644 --- a/apps/note/views.py +++ b/apps/note/views.py @@ -127,9 +127,9 @@ class ConsoView(LoginRequiredMixin, SingleTableView): table_pagination = {"per_page": 50} def get_queryset(self): - return Transaction.objects.filter(PermissionBackend - .filter_queryset(self.request.user, Transaction, "view")) \ - .order_by("-id").all()[:50] + return Transaction.objects.filter( + PermissionBackend.filter_queryset(self.request.user, Transaction, "view") + ).order_by("-id").all()[:50] def get_context_data(self, **kwargs): """