Closed rob101 closed 4 years ago
In the docs, the following is suggested:
def process_response(self, request, response): set_current_tenant(None) return response
This means that the response has no tenant when returned, incapacitating the project. Presumably this should be removed? It is also now depreciated and would require django.utils.deprecation.MiddlewareMixin
django.utils.deprecation.MiddlewareMixin
Yes, you are right, this should be removed from the documentation.
Fixed in https://github.com/citusdata/django-multitenant/commit/1c908cb6fe18f83df07bf1441411cfe37fb20295
In the docs, the following is suggested:
This means that the response has no tenant when returned, incapacitating the project. Presumably this should be removed? It is also now depreciated and would require
django.utils.deprecation.MiddlewareMixin