From 519cfbb4e8f388664347fcc708e44148148ed6f8 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Thu, 3 Dec 2015 00:31:09 +0000 Subject: [1.9.x] Fixed #25851 -- Removed links to deprecated assignment tag docs. Backport of b6dd0afead80a17d0ac8c3ba35c510afac32a0b8 from master --- docs/howto/custom-template-tags.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'docs/howto') diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index f44715a14a..5beed7637e 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -649,8 +649,6 @@ positional arguments. For example: {% my_tag 123 "abcd" book.title warning=message|lower profile=user.profile %} -.. _howto-custom-template-tags-assignment-tags: - Assignment tags ~~~~~~~~~~~~~~~ @@ -1131,10 +1129,9 @@ The difference here is that ``do_current_time()`` grabs the format string and the variable name, passing both to ``CurrentTimeNode3``. Finally, if you only need to have a simple syntax for your custom -context-updating template tag, you might want to consider using the -:ref:`assignment tag ` shortcut -we introduced above. - +context-updating template tag, consider using the +:meth:`~django.template.Library.simple_tag` shortcut, which supports assigning +the tag results to a template variable. Parsing until another block tag ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3