Skip to content


Subversion checkout URL

You can clone with
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
@aaugustin aaugustin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/db/backends/
5 django/db/backends/
@@ -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):

0 comments on commit a7e2835

Please sign in to comment.
Something went wrong with that request. Please try again.