From f043cfe3e2c1097804f486ecf05d18f054eb64fb Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Wed, 24 Apr 2013 14:26:13 -0300 Subject: [PATCH] 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. --- django/db/backends/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 9acef4ad19..4abc08c5a1 100644 --- a/django/db/backends/__init__.py +++ b/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): """