Commits

Florian Hahn committed 0f08b64

fix indenetion errors

  • Participants
  • Parent commits 28d68b5

Comments (0)

Files changed (2)

File object_permission_backend_nonrel/backends.py

         return self._create_permission_strings(current_permission_objs)
 
     def _get_group_permission(self, user_id, object_id, ct):
-               if not hasattr(self, '_group_id_list_cache'):
+        if not hasattr(self, '_group_id_list_cache'):
             setattr(self, '_group_id_list_cache', get_group_id_list(user_id))
         current_permission_objs = GroupObjectPermission.objects.filter(group__in=self._group_id_list_cache, content_type=ct, object_id=object_id)
         return self._create_permission_strings(current_permission_objs)

File object_permission_backend_nonrel/utils.py

     returns True if permission_list is saved
     """
     
-       if isinstance(user, User) and isinstance(model, models.Model):    
+    if isinstance(user, User) and isinstance(model, models.Model):    
         ct = get_content_type_string(model)
         try:
             perm_obj = ObjectPermission.objects.get(user=user,