Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f043cfe3e2c1097804f486ecf05d18f054eb64fb 1 parent db394e6
Michael Manfre manfre 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.