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.
This commit is contained in:
Michael Manfre 2013-04-24 14:26:13 -03:00
parent db394e6ab2
commit f043cfe3e2
1 changed files with 3 additions and 2 deletions

View File

@ -390,9 +390,10 @@ class BaseDatabaseWrapper(object):
def disable_constraint_checking(self): def disable_constraint_checking(self):
""" """
Backends can implement as needed to temporarily disable foreign key 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): def enable_constraint_checking(self):
""" """