streeter / django-db-readonly

Force an entire site to become readonly. In a sort of hackish way.
MIT License
107 stars 21 forks source link

Look up _last_executed on the underlying cursor #13

Closed staticshock closed 7 years ago

staticshock commented 8 years ago

_last_executed is quite useful for DEBUG query output; it shouldn't just be empty. It's used internally here:

sql = self.db.ops.last_executed_query(self.cursor, sql, params)
streeter commented 7 years ago

Version 0.4.2 is published to PyPI!

Thanks for your help! 🎉