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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user