Skip to content

Commit

Permalink
Merge pull request #17 from WZBSocialScienceCenter/master
Browse files Browse the repository at this point in the history
compatibility fix for django 1.11 (addressing #16)
  • Loading branch information
omji committed Jul 20, 2017
2 parents 64e4c06 + bf24303 commit d43920d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabbed_admin/templatetags/tabbed_admin_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def render_tab_fieldsets_inlines(context, entry):
**entry['config']
)
context["fieldset"] = f
return render_to_string(template, context)
return render_to_string(template, context.flatten(), request=context.request)
elif entry['type'] == 'inline':
try:
inline_admin_formset = inline_matching[entry["name"]]
context["inline_admin_formset"] = inline_admin_formset
return render_to_string(inline_admin_formset.opts.template,
context)
context.flatten(), request=context.request)
except KeyError: # The user does not have the permission
pass
return ''

0 comments on commit d43920d

Please sign in to comment.