mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -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): | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user