summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-05-30 20:07:53 +0200
committerClaude Paroz <claude@2xlibre.net>2013-05-30 20:07:53 +0200
commit571864c84595558e0d72031485dda772e5b4a5c8 (patch)
tree4108e08ce9f4ee92685ce1cd71be8a6b6f24e207
parent36aecb12b850aeed173a8e524cacb3444f807785 (diff)
Added missing stacklevel arg in forms/models.py
-rw-r--r--django/forms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py
index 9d5aa5d4d8..561ee7a44b 100644
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -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