Fix record index for related objects

Use the parent object index as record index, and its own index only on
the field name.
This commit is contained in:
Marko Hauptvogel
2025-10-30 13:33:34 +01:00
parent 8a59fc733c
commit 8452222761
2 changed files with 4 additions and 5 deletions

View File

@@ -1036,8 +1036,7 @@ module-bays:
response = self.client.post(reverse('dcim:devicetype_bulk_import'), data=form_data, follow=True)
self.assertHttpStatus(response, 200)
# TODO record index should be 2
self.assertContains(response, "Record 3 module-bays[3].name: This field is required.")
self.assertContains(response, "Record 2 module-bays[3].name: This field is required.")
def test_export_objects(self):
url = reverse('dcim:devicetype_list')