mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Removed a relatively pointless QuerySet clone introduced in [8472].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -617,10 +617,13 @@ class QuerySet(object): | |||||||
|         be treated as a single filter. This is only important when it comes to |         be treated as a single filter. This is only important when it comes to | ||||||
|         determining when to reuse tables for many-to-many filters. Required so |         determining when to reuse tables for many-to-many filters. Required so | ||||||
|         that we can filter naturally on the results of related managers. |         that we can filter naturally on the results of related managers. | ||||||
|  |  | ||||||
|  |         This doesn't return a clone of the current QuerySet (it returns | ||||||
|  |         "self"). The method is only used internally and should be immediately | ||||||
|  |         followed by a filter() that does create a clone. | ||||||
|         """ |         """ | ||||||
|         obj = self._clone() |         self._sticky_filter = True | ||||||
|         obj._sticky_filter = True |         return self | ||||||
|         return obj |  | ||||||
|  |  | ||||||
|     def _merge_sanity_check(self, other): |     def _merge_sanity_check(self, other): | ||||||
|         """ |         """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user