allowing extra arguments in get_inline_formsets

This commit is contained in:
Omer Strumpf
2017-09-27 15:18:34 -04:00
committed by Jerome Leclanche
parent 80b4f2bb41
commit bc11934c31
+1 -1
View File
@@ -91,7 +91,7 @@ class PolymorphicInlineSupportMixin(object):
:class:`~django.contrib.admin.helpers.InlineAdminFormSet` for the polymorphic formsets. :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 Overwritten version to produce the proper admin wrapping for the
polymorphic inline formset. This fixes the media and form appearance polymorphic inline formset. This fixes the media and form appearance