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

Removing 'django.contrib.auth' from SHARED_APPS gives error #568

Open surfer190 opened 6 years ago

surfer190 commented 6 years ago

I realised I don't need auth on the public site, so I removed it. Now I get this error when running funcitonal tests:

django.db.utils.ProgrammingError: relation "auth_permission" does not exist
LINE 1: ...ntent_type_id", "auth_permission"."codename" FROM "auth_perm...
surfer190 commented 6 years ago

Hmmm, so you have to reset the db when updating SHARED_APPS according to this issue https://github.com/bernardopires/django-tenant-schemas/issues/525