From 36b502f7c79368fdd9dd0009ebb74e4ac1d189ec Mon Sep 17 00:00:00 2001 From: Peter Inglesby Date: Sun, 19 May 2013 10:39:32 +0200 Subject: [PATCH] Remove spurious print statement --- djadmin2/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/djadmin2/views.py b/djadmin2/views.py index 6d95db6..35575d7 100644 --- a/djadmin2/views.py +++ b/djadmin2/views.py @@ -39,7 +39,6 @@ class AdminModel2Mixin(Admin2Mixin, AccessMixin): def dispatch(self, request, *args, **kwargs): # Check if user has necessary permissions. If the permission_type isn't specified then check for staff status. - print "distpatch perm check:", self.permission_type has_permission = self.modeladmin.has_permission(request, self.permission_type) \ if self.permission_type else request.user.is_staff # Raise exception or redirect to login if user doesn't have permissions.