Updated the API to Django's lazy API [ci skip]