Refactor a bit right handling

This commit is contained in:
Skia
2016-03-22 17:46:26 +01:00
parent 18f856af24
commit c3fb581f97
5 changed files with 31 additions and 11 deletions

View File

@ -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'):