Use django-rest-framework's APIClient instead of a homebrew.