def put(self, url, data=None, **kwargs):

        return self.request('put', url, data=data, **kwargs)
The @db_write decorator should make any view set the cookie.
dataset/ETHPy150Open bububa/pyTOP/pyTOP/packages/requests/sessions.py/Session.put--crossover with--dataset/ETHPy150Open jbalogh/django-multidb-router/multidb/tests.py/MiddlewareTests.test_db_write_decorator