'Helper function that checks whether every object "belongs" to current user.'

def _all_objects_belong_to_user(self, object_list, bundle):

    user = self._get_user(bundle)
    for obj in object_list:
        if (obj.user != user):
            return False
    return True
