From 25979fd0c2d7541111f803f18203259759a32002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Fri, 15 Jul 2022 12:14:23 +0200 Subject: [PATCH] Update docs/features.rst Co-authored-by: Peter Bittner --- docs/features.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/features.rst b/docs/features.rst index 6382bd5..ae6d075 100644 --- a/docs/features.rst +++ b/docs/features.rst @@ -79,7 +79,9 @@ sending, you can do it by setting the `analyitcal_identity` context variable:: context = RequestContext({'analytical_identity': user.uuid}) return some_template.render(context) -or in the template:: +or in the template: + +.. code-block:: django {% with analytical_identity=request.user.uuid|default:None %} {% analytical_head_top %}