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

Fix up bulk editing forms

This commit is contained in:
Jeremy Stretch
2020-02-06 15:51:51 -05:00
parent 1b5969a5ee
commit 17e0054941
2 changed files with 14 additions and 7 deletions

View File

@@ -219,6 +219,6 @@ def querydict_to_dict(querydict):
"""
assert isinstance(querydict, QueryDict)
return {
key: querydict.get(key) if len(value) == 1 else querydict.getlist(key)
key: querydict.get(key) if len(value) == 1 and key != 'pk' else querydict.getlist(key)
for key, value in querydict.lists()
}