'Returns iterable of objects that contain data. For example, resolves Django ManyToMany relationship
so the attributes of the related models can then be accessed.'

@classmethod
def get_iterable_objects(cls, current_objects):

    if (current_objects is None):
        return []
    if hasattr(current_objects, u'all'):
        if ismethod(current_objects.all):
            return current_objects.all()
        return []
    elif (not hasattr(current_objects, u'__iter__')):
        current_objects = [current_objects]
    return current_objects
