Hi everyone. I'm using a library to support multitenancy (
https://github.com/mik3y/django-db-multitenant), i.e. the django application uses different databases based on the incoming subdomain. This seems all to be working fine, but with django-reversion I frequentlty get a hickup when saving a model change that's revisioned. It looks like information from one database is being used to save information in another one, in particular for the content types where a foreign key constraint informs me of the leakage. Both of these libraries use thread local quite heavily which I'm suspecting to be the cause but have not been able to narrow it down. For the multitenancy to work, a custom database backend fetches the database name from the thread before connecting.
Has anyone here had a similar issue come up or any suggestions on what the problem could be?