mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #36301 -- Fixed select_for_update(of) crash when using values()/values_list().
Regression in 65ad4ade74 which allowed for
annotations to be SELECT'ed before model field references through
values()/values_list() and broke assumptions the select_for_update(of)
table infererence logic had about model fields always being first.
Refs #28900.
Thanks OutOfFocus4 for the report and Sarah for the test.
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							8ad3e80e88
						
					
				
				
					commit
					71a19a0e47
				
			| @@ -28,3 +28,7 @@ Bugfixes | ||||
|   ``allow_overwrite=True``, where leftover content from a previously larger | ||||
|   file could remain after overwriting with a smaller one due to lack of | ||||
|   truncation (:ticket:`36298`). | ||||
|  | ||||
| * Fixed a regression in Django 5.2 that caused a crash when using | ||||
|   ``QuerySet.select_for_update(of=(…))`` with ``values()/values_list()`` | ||||
|   including expressions (:ticket:`36301`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user