瀏覽代碼

Merge pull request #1028 from manfre/patch-2

Fixed #20340 - document required return value for disable_constraint_checking
Aymeric Augustin 12 年之前
父節點
當前提交
a7e2835276
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      django/db/backends/__init__.py

+ 3 - 2
django/db/backends/__init__.py

@@ -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):
         """