mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user