Commit f043cfe3 authored by Michael Manfre's avatar Michael Manfre
Browse files

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.
parent db394e6a
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):
        """