Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1028 from manfre/patch-2

Fixed #20340 - document required return value for disable_constraint_checking
  • Loading branch information...
commit a7e2835276b212425dc07251c833b406304ab1a4 2 parents cb86f70 + f043cfe
Aymeric Augustin aaugustin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/db/backends/__init__.py
5 django/db/backends/__init__.py
View
@@ -390,9 +390,10 @@ def constraint_checks_disabled(self):
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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.