summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-05-19 04:17:08 -0700
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-05-19 04:17:08 -0700
commita7e2835276b212425dc07251c833b406304ab1a4 (patch)
treec3e91281a8ec4c15d1a7a5b8a7fd3598ab68f842
parentcb86f707a04e5635817d5f37a1443f9bf7d6af21 (diff)
parentf043cfe3e2c1097804f486ecf05d18f054eb64fb (diff)
Merge pull request #1028 from manfre/patch-2
Fixed #20340 - document required return value for disable_constraint_checking
-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):
"""