Remove spurious print statement

This commit is contained in:
Peter Inglesby 2013-05-19 10:39:32 +02:00
parent 950b68bd75
commit 36b502f7c7

View file

@ -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.