diff --git a/easy_docs/templatetags/easy_docs_tags.py b/easy_docs/templatetags/easy_docs_tags.py index 91998b7..96eab23 100644 --- a/easy_docs/templatetags/easy_docs_tags.py +++ b/easy_docs/templatetags/easy_docs_tags.py @@ -2,6 +2,7 @@ from django.utils.safestring import mark_safe from django.templatetags.static import static import markdown as md +from django.template.loader import render_to_string register = template.Library() @@ -24,4 +25,5 @@ def markdown_format(text): @register.simple_tag(takes_context=True) def help_button(context): - return template.loader.render_to_string('documentation.html', context) \ No newline at end of file + context_dict = {k: v for k, v in context.flatten().items()} + return render_to_string('documentation.html', context_dict) \ No newline at end of file diff --git a/setup.py b/setup.py index 98c3fb1..e372809 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='django-easy-docs', - version='1.2.1', + version='1.3.0', packages=find_packages(exclude=['*.migrations', '*.migrations.*', 'migrations.*', 'migrations', 'docs', 'docs.*']), url='https://github.com/LewisFletcher/django-easy-docs', author='Lewis Fletcher',