Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1028 from manfre/patch-2

Fixed #20340 - document required return value for disable_constraint_checking
  • Loading branch information...
commit a7e2835276b212425dc07251c833b406304ab1a4 2 parents cb86f70 + f043cfe
Aymeric Augustin authored May 19, 2013

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  django/db/backends/__init__.py
5  django/db/backends/__init__.py
@@ -390,9 +390,10 @@ def constraint_checks_disabled(self):
390 390
     def disable_constraint_checking(self):
391 391
         """
392 392
         Backends can implement as needed to temporarily disable foreign key
393  
-        constraint checking.
  393
+        constraint checking. Should return True if the constraints were 
  394
+        disabled and will need to be reenabled.
394 395
         """
395  
-        pass
  396
+        return False
396 397
 
397 398
     def enable_constraint_checking(self):
398 399
         """

0 notes on commit a7e2835

Please sign in to comment.
Something went wrong with that request. Please try again.