def refresh(obj):
    db = obj._state.db
    return type(obj).objects.using(db).get(pk=obj.pk)
Gets deal objects in batches of 20.
dataset/ETHPy150Open django-salesforce/django-salesforce/tests/test_mixin/tests.py/refresh--crossover with--dataset/ETHPy150Open npinger/base-crm-api-client/base_client.py/BaseAPIService.get_deals