From 8ad464ae0c0731f91f41542a1531c1639bc71928 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 2 Apr 2020 00:42:00 +0200 Subject: [PATCH] Fix CI --- apps/permission/backends.py | 4 ++-- apps/permission/decorators.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/permission/backends.py b/apps/permission/backends.py index ef58403b..4cc0dd9e 100644 --- a/apps/permission/backends.py +++ b/apps/permission/backends.py @@ -10,8 +10,8 @@ from django.db.models import Q, F from note.models import Note, NoteUser, NoteClub, NoteSpecial from note_kfet.middlewares import get_current_session from member.models import Membership, Club -from .decorators import memoize +from .decorators import memoize from .models import Permission @@ -43,7 +43,7 @@ class PermissionBackend(ModelBackend): rolepermissions__role__membership__date_end__gte=datetime.date.today(), type=t, mask__rank__lte=get_current_session().get("permission_mask", 0), - ).distinct('club', 'pk') + ).distinct('club', 'pk',) @staticmethod def permissions(user, model, type): diff --git a/apps/permission/decorators.py b/apps/permission/decorators.py index b6863f23..cb8649fd 100644 --- a/apps/permission/decorators.py +++ b/apps/permission/decorators.py @@ -53,4 +53,4 @@ def memoize(f): func.func_name = f.__name__ - return func \ No newline at end of file + return func