allowing extra arguments in get_inline_formsets

This commit is contained in:
Omer Strumpf authored and Jerome Leclanche committed 2017-09-28 12:22:13 +03:00
1 parent 80b4f2bb41
commit bc11934c31
1 file changed
+1 -1
+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