X-Git-Url: https://git.mdrn.pl/django-ssify.git/blobdiff_plain/64c5163e7aead7eb60951e040998ade343c079c5..af10b85180a1c533b43091d65ab724977a6d2e74:/ssify/variables.py?ds=sidebyside diff --git a/ssify/variables.py b/ssify/variables.py index 668bb51..46a787b 100644 --- a/ssify/variables.py +++ b/ssify/variables.py @@ -137,8 +137,12 @@ class SsiVariableNode(template.Node): var = SsiVariable(self.tagpath, resolved_args, resolved_kwargs) request = context['request'] + if not hasattr(request, 'ssi_vars_needed'): + request.ssi_vars_needed = {} request.ssi_vars_needed[var.name] = var if self.patch_response: + if not hasattr(request, 'ssi_patch_response'): + request.ssi_patch_response = [] request.ssi_patch_response.extend(self.patch_response) if self.asvar: