bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 424 forks source link

Tenant schemas and Django Rest Framework testing (token auth) #508

Closed AustinGomez closed 7 years ago

AustinGomez commented 7 years ago

Hi there, I'm trying to test some of my code but I'm running into some issues. I'm using django-tenant-schemas along with Django rest framework and I'm trying to attach a user to the requests my TenantClient creates in my test setup.

I've tried: client.login(...) client.force_login(...) etc.

Thanks in advance.

BillBrower commented 6 years ago

@AustinGomez how'd you end up fixing this?