allowing extra arguments in get_inline_formsets

fix_request_path_info
Omer Strumpf 2017-09-27 15:18:34 -04:00 committed by Jerome Leclanche
parent 80b4f2bb41
commit bc11934c31
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class PolymorphicInlineSupportMixin(object):
:class:`~django.contrib.admin.helpers.InlineAdminFormSet` for the polymorphic formsets.
"""
def get_inline_formsets(self, request, formsets, inline_instances, obj=None):
def get_inline_formsets(self, request, formsets, inline_instances, obj=None, *args, **kwargs):
"""
Overwritten version to produce the proper admin wrapping for the
polymorphic inline formset. This fixes the media and form appearance