summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/base.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-07 11:50:49 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 14:48:54 +0100
commit7b4815b455fc99a2661492f91f7242cfb09a7017 (patch)
tree7a1cc9495407e30b428de8b55c78cc91677c72f4 /django/db/backends/postgresql_psycopg2/base.py
parentcd364efa00dba5aa86187aee83e4ed9917e7e93c (diff)
Expressed the dirty flag handling logic in terms of autocommit.
Diffstat (limited to 'django/db/backends/postgresql_psycopg2/base.py')
-rw-r--r--django/db/backends/postgresql_psycopg2/base.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py
index 385206221d..cc1d1ae567 100644
--- a/django/db/backends/postgresql_psycopg2/base.py
+++ b/django/db/backends/postgresql_psycopg2/base.py
@@ -202,10 +202,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
level = self.isolation_level
self.connection.set_isolation_level(level)
- def set_dirty(self):
- if self.transaction_state and self.transaction_state[-1]:
- super(DatabaseWrapper, self).set_dirty()
-
def check_constraints(self, table_names=None):
"""
To check constraints, we set constraints to immediate. Then, when, we're done we must ensure they