From 8c2f36260e71acb41596004f6abc2ead4c917f6d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 24 Nov 2012 22:04:17 +0100 Subject: [1.5.x] Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax. Backport of 6b8a7ce. --- docs/ref/templates/builtins.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 656cbedecd..a3d3d66f0d 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1024,6 +1024,16 @@ This will follow the normal :ref:`namespaced URL resolution strategy `, including using any hints provided by the context as to the current application. +.. warning:: + + Don't forget to put quotes around the function path or pattern name! + + .. versionchanged:: 1.5 + The first paramater used not to be quoted, which was inconsistent with + other template tags. Since Django 1.5, it is evaluated according to + the usual rules: it can be a quoted string or a variable that will be + looked up in the context. + .. templatetag:: verbatim verbatim -- cgit v1.3