We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542e593 commit b747d3fCopy full SHA for b747d3f
readonly/__init__.py
@@ -94,8 +94,7 @@ def _write_sql(self, sql):
94
return any(s.strip().upper().startswith(self.SQL_WRITE_BLACKLIST) for s in sql.split(';'))
95
96
def _write_to_readonly_db(self):
97
- return (
98
- not self.readonly_dbs
+ return (not self.readonly_dbs
99
or self.db.settings_dict['NAME'] in self.readonly_dbs)
100
101
@property
0 commit comments