mirror of
https://github.com/Hopiu/django.git
synced 2026-05-02 20:54:44 +00:00
Added missing stacklevel arg in forms/models.py
This commit is contained in:
parent
36aecb12b8
commit
571864c845
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ class ModelFormMetaclass(type):
|
|||
warnings.warn("Creating a ModelForm without either the 'fields' attribute "
|
||||
"or the 'exclude' attribute is deprecated - form %s "
|
||||
"needs updating" % name,
|
||||
PendingDeprecationWarning)
|
||||
PendingDeprecationWarning, stacklevel=2)
|
||||
|
||||
if opts.fields == ALL_FIELDS:
|
||||
# sentinel for fields_for_model to indicate "get the list of
|
||||
|
|
|
|||
Loading…
Reference in a new issue