1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

Add a useful stacklevel to some RemovedInDjango19Warnings

This commit is contained in:
Chris Beaven
2014-03-27 15:43:31 +13:00
parent bf2b0affe4
commit b077ba7ac1
4 changed files with 6 additions and 4 deletions

View File

@@ -4,6 +4,6 @@ from django.utils.deprecation import RemovedInDjango19Warning
warnings.warn(
"The django.forms.util module has been renamed. "
"Use django.forms.utils instead.", RemovedInDjango19Warning)
"Use django.forms.utils instead.", RemovedInDjango19Warning, stacklevel=2)
from django.forms.utils import * # NOQA