summaryrefslogtreecommitdiff
path: root/tests/template_loader/templates
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-01-03 19:06:36 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-01-07 21:54:22 +0100
commiteaa1a22341aef5b92f5c3cd682f01e61c4159262 (patch)
tree6e760006ff1f84178f350771ce5d11ceacdf4d79 /tests/template_loader/templates
parent118592663dcb761fb269ead3ab8a4977bc2cd3a6 (diff)
Added a request argument to render_to_string.
This is for consistency with Template.render. It adds a little bit of knowledge about HTTP requests in django.template.loader but I think consistency trumps purity.
Diffstat (limited to 'tests/template_loader/templates')
-rw-r--r--tests/template_loader/templates/template_loader/request.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/template_loader/templates/template_loader/request.html b/tests/template_loader/templates/template_loader/request.html
new file mode 100644
index 0000000000..5d899f6000
--- /dev/null
+++ b/tests/template_loader/templates/template_loader/request.html
@@ -0,0 +1 @@
+{{ request.path }}