Commits

Kai Diefenbach committed c7bafcd

Import utils

Comments (0)

Files changed (1)

permissions/models.py

 from django.contrib.contenttypes.models import ContentType
 from django.utils.translation import ugettext_lazy as _
 
+import permissions.utils
+
 class PermissionBase(object):
     """Mix-in class for permissions.
     """
             The permission which should be checked. Must be the codename of
             the permission.
         """
-        return permission.utils.is_inherited(self, codename)
+        return permissions.utils.is_inherited(self, codename)
 
     def add_role(self, principal, role):
         """Adds a local role for the principal.
 
     def remove_role(self, principal, role):
         """Adds a local role for the principal to the object.
-        
+
         **Parameters:**
 
         principal
         **Parameters:**
 
         principal
-            The principal (user or group) from which all local roles are 
+            The principal (user or group) from which all local roles are
             removed.
         """
-        return permissions.utils.remove_local_roles(self, principal, role)
+        return permissions.utils.remove_local_roles(self, principal)
 
 class Permission(models.Model):
     """A permission which can be granted to users/groups and objects.