Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Made the deprecation warning for reponse.template more useful by poin…

…ting to the caller.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7beca4d3e5da784297ff7163d00dcfeee9a34dd6 1 parent b059011
@spookylukey spookylukey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/test/
2  django/test/
@@ -410,7 +410,7 @@ def request(self, **request):
# Provide a backwards-compatible (but pending deprecation) response.template
def _get_template(self):
warnings.warn("response.template is deprecated; use response.templates instead (which is always a list)",
- PendingDeprecationWarning)
+ PendingDeprecationWarning, stacklevel=2)
if not self.templates:
return None
elif len(self.templates) == 1:

0 comments on commit 7beca4d

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