mirror of
https://github.com/django/django.git
synced 2025-02-10 01:16:53 +00:00
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):
|
||||
"""
|
||||
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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user