Improve Club views

This commit is contained in:
Skia
2016-02-08 17:09:52 +01:00
parent a14d940db2
commit e2b0668ee8
2 changed files with 44 additions and 13 deletions

View File

@ -72,6 +72,9 @@ class CanViewMixin(View):
"""
def dispatch(self, request, *arg, **kwargs):
res = super(CanViewMixin, self).dispatch(request, *arg, **kwargs)
import traceback
traceback.print_stack(limit=10)
print(self.__dict__)
if hasattr(self, 'object'):
obj = self.object
elif hasattr(self, 'object_list'):