mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-11 13:16:09 +00:00
Refactor a bit right handling
This commit is contained in:
1 parent
18f856af24
commit
c3fb581f97
5 files changed
+31
-11
No files matched your search
@@ -72,6 +72,7 @@ class CanViewMixin(View):
|
||||
"""
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
res = super(CanViewMixin, self).dispatch(request, *arg, **kwargs)
|
||||
print("GUYGUYGUYGUYGUY")
|
||||
if hasattr(self, 'object'):
|
||||
obj = self.object
|
||||
elif hasattr(self, 'object_list'):
|
||||
|
||||
Reference in new issue
Block a user