From d26691958443a4b968fecba5510c37768153fafa Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 24 Nov 2012 22:04:17 +0100 Subject: Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax. --- 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 ba43e2eb15..c525162862 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1035,6 +1035,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