https://github.com/dabapps/django-zen-queries/blob/master/zen_queries/decorators.py is a better approach, allowing per-connection, but that requires hooking into create_cursor, which is a bit harder, and diverges from the current approach used for the global readonly code (which was not being tested). So I think it is better to stick to one approach at the moment.
https://github.com/dabapps/django-zen-queries/blob/master/zen_queries/decorators.py is a better approach, allowing per-connection, but that requires hooking into
create_cursor
, which is a bit harder, and diverges from the current approach used for the global readonly code (which was not being tested). So I think it is better to stick to one approach at the moment.