diff options
author | Takayuki Hirayama <hirayama@cancerscan.jp> | 2020-01-17 17:20:44 +0900 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-17 09:20:44 +0100 |
commit | 73563183c2ea92e9ef1d3a1f790a503acc14ade2 (patch) | |
tree | 1e6f04d2de08381f8715acdbd0440412bf0ff7ab /docs | |
parent | 13e4abf83e5129b44c771b2204809792087abda4 (diff) | |
download | django-73563183c2ea92e9ef1d3a1f790a503acc14ade2.tar.gz |
Fixed #31171 -- Fixed wording in auto-escaping section of custom template tags docs.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/howto/custom-template-tags.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index c745c9e54b..aad254b946 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -772,7 +772,7 @@ auto-escaping filters (with the exception of are still a couple of things you should keep in mind when writing a template tag. -If the ``render()`` function of your template stores the result in a context +If the ``render()`` method of your template tag stores the result in a context variable (rather than returning the result in a string), it should take care to call ``mark_safe()`` if appropriate. When the variable is ultimately rendered, it will be affected by the auto-escape setting in effect at the |