Skip to content

Commit

Permalink
a fix for OskarPersson#67
Browse files Browse the repository at this point in the history
  • Loading branch information
xela7 committed Aug 14, 2019
1 parent cfa5a07 commit 2429a29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nested_inline/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def add_view(self, request, form_url='', extra_context=None):
inline_admin_formsets.append(inline_admin_formset)
media = media + inline_admin_formset.media
if hasattr(inline, 'inlines') and inline.inlines:
media += self.wrap_nested_inline_formsets(request, inline, formset)
wrapped = self.wrap_nested_inline_formsets(request, inline, formset)
if wrapped:
media += wrapped

context = {
'title': _('Add %s') % force_text(opts.verbose_name),
Expand Down

0 comments on commit 2429a29

Please sign in to comment.