Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing stacklevel arg in forms/

  • Loading branch information...
commit 571864c84595558e0d72031485dda772e5b4a5c8 1 parent 36aecb1
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/
2  django/forms/
@@ -238,7 +238,7 @@ def __new__(cls, name, bases, attrs):
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
Please sign in to comment.
Something went wrong with that request. Please try again.