diff --git a/django/contrib/contenttypes/generic.py b/django/contrib/contenttypes/generic.py
index 81301cf..2e5a4c5 100644
a
|
b
|
class GenericInlineModelAdmin(InlineModelAdmin):
|
396 | 396 | ct_fk_field = "object_id" |
397 | 397 | formset = BaseGenericInlineFormSet |
398 | 398 | |
399 | | def get_formset(self, request, obj=None): |
| 399 | def get_formset(self, request, obj=None, **kwargs): |
400 | 400 | if self.declared_fieldsets: |
401 | 401 | fields = flatten_fieldsets(self.declared_fieldsets) |
402 | 402 | else: |
… |
… |
class GenericInlineModelAdmin(InlineModelAdmin):
|
420 | 420 | "max_num": self.max_num, |
421 | 421 | "exclude": exclude |
422 | 422 | } |
| 423 | defaults.update(kwargs) |
423 | 424 | return generic_inlineformset_factory(self.model, **defaults) |
424 | 425 | |
425 | 426 | class GenericStackedInline(GenericInlineModelAdmin): |