﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37026	edit_only not implemented for formsets in GenericInlineModelAdmin	Jacob Walls		"`BaseModelFormSet` received an `edit_only` parameter in #26412 (and #33822), but it looks like this was never implemented for `GenericInlineModelAdmin`:

For the purposes of demonstrating the issue only, edit this test:
{{{#!diff
diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py
index b4833e54e7..9f1a997b00 100644
--- a/tests/generic_inline_admin/tests.py
+++ b/tests/generic_inline_admin/tests.py
@@ -518,7 +518,7 @@ class GenericInlineModelAdminTest(SimpleTestCase):
                 return [(None, {""fields"": [""url"", ""description""]})]
 
         ma = MediaInline(Media, self.site)
-        form = ma.get_formset(None).form
+        form = ma.get_formset(None, edit_only=True).form
         self.assertEqual(form._meta.fields, [""url"", ""description""])
 
     def test_get_formsets_with_inlines_returns_tuples(self):
}}}

{{{#!py
  File ""/Users/jwalls/django/django/contrib/contenttypes/admin.py"", line 150, in get_formset
    return generic_inlineformset_factory(self.model, **defaults)
TypeError: generic_inlineformset_factory() got an unexpected keyword argument 'edit_only'
}}}"	Bug	new	contrib.contenttypes	6.0	Normal			MANAS MADESHIYA	Unreviewed	0	0	0	0	0	0
