Skip to content

Commit

Permalink
Merge pull request #1279 from devinit/hotfix/fix-404
Browse files Browse the repository at this point in the history
Use get to optional value
  • Loading branch information
wakibi authored Dec 12, 2022
2 parents 0a5ad2a + d9bfccc commit 1a44411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion di_website/publications/templatetags/report_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def chapter_nav_slice(chapters, chapter_number=0, max_length=6):
@register.simple_tag(takes_context=True)
def page_contains_chart(context):
charts = {'plotly_studio': False, 'advanced': False}
self = context['page']
self = context.get('page')
try:
content = self.tools if hasattr(self, 'tools') else self.content
for item in content:
Expand Down

0 comments on commit 1a44411

Please sign in to comment.