mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.8.x] Removed 'autocommit' options for the psycopg2 backend.
It was documented as not having any effect since Django 1.6.
Backport of a73c8540a8 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							30e5356c2e
						
					
				
				
					commit
					d027993ed1
				
			| @@ -146,10 +146,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): | ||||
|             'database': settings_dict['NAME'] or 'postgres', | ||||
|         } | ||||
|         conn_params.update(settings_dict['OPTIONS']) | ||||
|         if 'autocommit' in conn_params: | ||||
|             del conn_params['autocommit'] | ||||
|         if 'isolation_level' in conn_params: | ||||
|             del conn_params['isolation_level'] | ||||
|         conn_params.pop('isolation_level', None) | ||||
|         if settings_dict['USER']: | ||||
|             conn_params['user'] = settings_dict['USER'] | ||||
|         if settings_dict['PASSWORD']: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user