mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.9.x] Refs #25846 -- Added stacklevel to SubfieldBase warning.
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							eb9efffe0c
						
					
				
				
					commit
					64200c14e0
				
			| @@ -19,7 +19,7 @@ class SubfieldBase(type): | ||||
|     """ | ||||
|     def __new__(cls, name, bases, attrs): | ||||
|         warnings.warn("SubfieldBase has been deprecated. Use Field.from_db_value instead.", | ||||
|                   RemovedInDjango110Warning) | ||||
|                   RemovedInDjango110Warning, stacklevel=2) | ||||
|  | ||||
|         new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs) | ||||
|         new_class.contribute_to_class = make_contrib( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user