mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Mise à jour de Black vers la version 23.3 (#629)
This commit is contained in:
1 parent
c78953b036
commit
b5a40cfda9
135 files changed
+37
-154
No files matched your search
@@ -162,7 +162,6 @@ class GenericContentPermissionMixinBuilder(View):
|
||||
return cls.permission_function(obj, user)
|
||||
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
|
||||
if hasattr(self, "get_object") and callable(self.get_object):
|
||||
self.object = self.get_object()
|
||||
if not self.get_permission_function(self.object, request.user):
|
||||
|
||||
Reference in new issue
Block a user