From b91d62cca07638741f5902713983f71478589b0e Mon Sep 17 00:00:00 2001
From: Neeraj Kumar <sainineeraj1234@gmail.com>
Date: Fri, 7 Jul 2023 08:12:25 +0200
Subject: [PATCH] Refs #24377 -- Added assertions for model inlines with
 primary key that has a default.

This ensures that a model field default is ignored.
---
 tests/model_formsets/test_uuid.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/model_formsets/test_uuid.py b/tests/model_formsets/test_uuid.py
index 2097bde82b..2084fc2987 100644
--- a/tests/model_formsets/test_uuid.py
+++ b/tests/model_formsets/test_uuid.py
@@ -43,6 +43,8 @@ class InlineFormsetTests(TestCase):
             }
         )
         self.assertTrue(formset.is_valid())
+        self.assertIsNone(formset.instance.uuid)
+        self.assertIsNone(formset.forms[0].instance.parent_id)
 
     def test_inlineformset_factory_nulls_default_pks_uuid_parent_auto_child(self):
         """