Kaynağa Gözat

Merge pull request #1028 from manfre/patch-2

Fixed #20340 - document required return value for disable_constraint_checking
Aymeric Augustin 12 yıl önce
ebeveyn
işleme
a7e2835276
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  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):
         """