def _get_django_objects(model):
    '''
    Given a Django model class get all of the current records that match.
    This is better than django's bulk methods and has no upper limit.
    '''
    model_name = model.__class__.__name__
    model_objects = [i for i in model.objects.all()]
    logger.debug('Found {} {} objects in DB'.format(len(model_objects), model_name))
    return model_objects
Given a Django model class get all of the current records that match.
    This is better than django's bulk methods and has no upper limit.