mirror of
				https://github.com/django/django.git
				synced 2025-10-30 09:06:13 +00:00 
			
		
		
		
	Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							4d9cd89acb
						
					
				
				
					commit
					659a73bc0a
				
			| @@ -1651,10 +1651,11 @@ your test suite. | |||||||
|  |  | ||||||
|     Asserts that a queryset ``qs`` returns a particular list of values ``values``. |     Asserts that a queryset ``qs`` returns a particular list of values ``values``. | ||||||
|  |  | ||||||
|     The comparison of the contents of ``qs`` and ``values`` is performed using |     The comparison of the contents of ``qs`` and ``values`` is performed by | ||||||
|     the function ``transform``; by default, this means that the ``repr()`` of |     applying ``transform`` to ``qs``. By default, this means that the | ||||||
|     each value is compared. Any other callable can be used if ``repr()`` doesn't |     ``repr()`` of each value in ``qs`` is compared to the ``values``. Any other | ||||||
|     provide a unique or helpful comparison. |     callable can be used if ``repr()`` doesn't provide a unique or helpful | ||||||
|  |     comparison. | ||||||
|  |  | ||||||
|     By default, the comparison is also ordering dependent. If ``qs`` doesn't |     By default, the comparison is also ordering dependent. If ``qs`` doesn't | ||||||
|     provide an implicit ordering, you can set the ``ordered`` parameter to |     provide an implicit ordering, you can set the ``ordered`` parameter to | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user