Commit a7e28352 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Merge pull request #1028 from manfre/patch-2

Fixed #20340 - document required return value for disable_constraint_checking
parents cb86f707 f043cfe3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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):
        """