1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Enforce object creation permissions

This commit is contained in:
Jeremy Stretch
2019-10-01 16:54:10 -04:00
parent 88d61db384
commit 6892b79366
3 changed files with 12 additions and 4 deletions

View File

@@ -305,6 +305,7 @@ device-bays:
'format': 'yaml'
}
response = self.client.post(reverse('dcim:devicetype_import'), data=form_data, follow=True)
self.assertEqual(response.status_code, 200)
dt = DeviceType.objects.get(model='TEST-1000')