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): """