diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-11-24 22:04:17 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-11-24 22:10:51 +0100 |
| commit | d26691958443a4b968fecba5510c37768153fafa (patch) | |
| tree | 6dfa97148d1beaff8c835c1063c5f777e52e38b1 /docs | |
| parent | 690cac3a34321208c4601e37bd5166ee7133e5ef (diff) | |
Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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 <topics-http-reversing-url-namespaces>`, 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 |
