summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Manfre <mmanfre@gmail.com>2013-04-24 14:26:13 -0300
committerMichael Manfre <mmanfre@gmail.com>2013-04-24 14:26:13 -0300
commitf043cfe3e2c1097804f486ecf05d18f054eb64fb (patch)
tree0f4fa69f8c087ec42aca1655f6e727abdde1c81d
parentdb394e6ab2c1d3d53b8b8d691e995d0c3584b944 (diff)
Fixed documentation of disable_constraint_checking
The docstring and base implementation of disable_constraint_checking do not indicate that a return value is expected for proper behavior.
-rw-r--r--django/db/backends/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index 9acef4ad19..4abc08c5a1 100644
--- a/django/db/backends/__init__.py
+++ b/django/db/backends/__init__.py
@@ -390,9 +390,10 @@ class BaseDatabaseWrapper(object):
def disable_constraint_checking(self):
"""
Backends can implement as needed to temporarily disable foreign key
- constraint checking.
+ constraint checking. Should return True if the constraints were
+ disabled and will need to be reenabled.
"""
- pass
+ return False
def enable_constraint_checking(self):
"""