Open m4l opened 9 years ago
I've managed to couple DRF with Tenant Schemas by adapting intial classes of TenantClient and TenantTestCase to mixins, which will be combined with APIClient and APITenantClient.
Not sure if relevant, but I have override the initial definition of migrate to forward the call to migrate_schemas.
I will do a pull reqest to introduce the modification to this original repository.
Everybody interested, have a look over this patch: https://github.com/bernardopires/django-tenant-schemas/pull/251
We switched to django-tenant-schema
and encountered similar problems integrating Django-REST-Framework
.
+1 for better integration requested.
I'm struggling to get all my test cases running again after switching to django-tenant-schemas. I'm heavily using djangorestframework v2.4.4 for API views. Using TenantClient I get a full HTML response with a 200 status code where I expect an empty 204.
Here my minimum example: