Commits

Kai Diefenbach  committed e72a4df

PEP 8

  • Participants
  • Parent commits 2f8787f

Comments (0)

Files changed (2)

File permissions/models.py

 # permissions imports
 import permissions.utils
 
+
 class Permission(models.Model):
     """A permission which can be granted to users/groups and objects.
 
     def __unicode__(self):
         return "%s (%s)" % (self.name, self.codename)
 
+
 class ObjectPermission(models.Model):
     """Grants permission for a role and an content object (optional).
 

File permissions/utils.py

     """
     ctype = ContentType.objects.get_for_model(obj)
     cache_key = "%s-%s-%s" % (ctype.id, obj.id, codename)
-    result = None # _get_cached_permission(user, cache_key)
+    result = None  # _get_cached_permission(user, cache_key)
     if result is not None:
         return result