Commit 1716baab authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

origin attribute needed by Django 3.2

parent b2436821
Pipeline #60079 passed with stage
in 48 seconds
......@@ -72,6 +72,7 @@ class IncludeIfExistsNode(template.Node):
def render(self, context):
try:
self.template_node.origin = self.origin
return self.template_node.render(context)
except template.TemplateDoesNotExist:
cache_key = 'Template_not_found_%s' % self.template_name
......@@ -87,6 +88,7 @@ class IncludeIfExistsNode(template.Node):
)
)
if self.default_template_node:
self.default_template_node.origin = self.origin
return self.default_template_node.render(context)
return ''
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.2.57',
version='0.2.58',
description='Django Basetheme Bootstrap',
long_description=readme,
author='Bryan Brancotte',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment