Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added missing stacklevel arg in forms/models.py

  • Loading branch information...
commit 571864c84595558e0d72031485dda772e5b4a5c8 1 parent 36aecb1
Claude Paroz authored May 30, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/models.py
2  django/forms/models.py
@@ -238,7 +238,7 @@ def __new__(cls, name, bases, attrs):
238 238
                 warnings.warn("Creating a ModelForm without either the 'fields' attribute "
239 239
                               "or the 'exclude' attribute is deprecated - form %s "
240 240
                               "needs updating" % name,
241  
-                              PendingDeprecationWarning)
  241
+                              PendingDeprecationWarning, stacklevel=2)
242 242
 
243 243
             if opts.fields == ALL_FIELDS:
244 244
                 # sentinel for fields_for_model to indicate "get the list of

0 notes on commit 571864c

Please sign in to comment.
Something went wrong with that request. Please try again.