mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Advanced pending deprecation warnings.
Also added stacklevel argument, fixed #18127.
This commit is contained in:
		| @@ -703,7 +703,7 @@ class QuerySet(object): | ||||
|         """ | ||||
|         if 'depth' in kwargs: | ||||
|             warnings.warn('The "depth" keyword argument has been deprecated.\n' | ||||
|                     'Use related field names instead.', PendingDeprecationWarning) | ||||
|                     'Use related field names instead.', DeprecationWarning, stacklevel=2) | ||||
|         depth = kwargs.pop('depth', 0) | ||||
|         if kwargs: | ||||
|             raise TypeError('Unexpected keyword arguments to select_related: %s' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user