Merge pull request #1028 from manfre/patch-2
Fixed #20340 - document required return value for disable_constraint_checking
This commit is contained in:
commit
a7e2835276
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue