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

Move form/CSV data declaration under setUpTestData

This commit is contained in:
Jeremy Stretch
2020-01-31 09:27:41 -05:00
parent 939b5f2e29
commit 78d43a5d66
2 changed files with 52 additions and 49 deletions

View File

@@ -32,8 +32,6 @@ def post_data(data):
for key, value in data.items():
if value is None:
ret[key] = ''
elif hasattr(value, 'pk'):
ret[key] = getattr(value, 'pk')
else:
ret[key] = str(value)