Loading django/test/client.py +1 −1 Original line number Diff line number Diff line Loading @@ -410,7 +410,7 @@ class Client(RequestFactory): # 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: Loading Loading
django/test/client.py +1 −1 Original line number Diff line number Diff line Loading @@ -410,7 +410,7 @@ class Client(RequestFactory): # 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: Loading