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