fix: add stacklevel to deprecation warnings
This commit is contained in:
		
							parent
							
								
									db67630363
								
							
						
					
					
						commit
						aab4dec27e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -853,7 +853,7 @@ class BatchMasterView(MasterView): | |||
|                     if isinstance(field.widget, forms.widgets.PlainSelectWidget): | ||||
|                         warnings.warn("PlainSelectWidget is deprecated; " | ||||
|                                       "please use deform.widget.SelectWidget instead", | ||||
|                                       DeprecationWarning) | ||||
|                                       DeprecationWarning, stacklevel=2) | ||||
|                         field.widget = dfwidget.SelectWidget(values=field.widget.values) | ||||
| 
 | ||||
|         if not schema: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar