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:05:41 +0100 |
| commit | 8c2f36260e71acb41596004f6abc2ead4c917f6d (patch) | |
| tree | 53b060e8c03f0c57d6929b8fc412b737f7a5ba47 /docs/ref | |
| parent | f1afd57a32c7eb2a674d3f7e2d6341b23f7afee4 (diff) | |
[1.5.x] Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax.
Backport of 6b8a7ce.
Diffstat (limited to 'docs/ref')
| -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 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 <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 |
