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:
parent
db394e6ab2
commit
f043cfe3e2
|
@ -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