Skip to content
Browse files

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.
  • Loading branch information...
1 parent db394e6 commit f043cfe3e2c1097804f486ecf05d18f054eb64fb @manfre manfre committed
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 f043cfe

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