mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #23611 -- update_or_create failing from a related manager
Added update_or_create to RelatedManager, ManyRelatedManager and
GenericRelatedObjectManager.
Added missing get_or_create to GenericRelatedObjectManager.
Conflicts:
	tests/generic_relations/tests.py
	tests/get_or_create/tests.py
Backport of ed37f7e979 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Loic Bistuer
						Loic Bistuer
					
				
			
			
				
	
			
			
			
						parent
						
							dbd52f339c
						
					
				
				
					commit
					fa4b6482df
				
			| @@ -100,3 +100,6 @@ Bugfixes | ||||
|  | ||||
| * Fixed ``UnicodeDecodeError`` crash in ``AdminEmailHandler`` with non-ASCII | ||||
|   characters in the request (:ticket:`23593`). | ||||
|  | ||||
| * Fixed missing ``get_or_create`` and ``update_or_create`` on related managers | ||||
|   causing ``IntegrityError`` (:ticket:`23611`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user