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

Extend Cable model to support multiple A/B terminations

This commit is contained in:
jeremystretch
2022-04-25 17:10:15 -04:00
parent 6c290353c1
commit 4bb9b6ee26
16 changed files with 368 additions and 283 deletions

View File

@ -132,6 +132,7 @@ def serialize_object(obj, extra=None):
implicitly excluded.
"""
json_str = serialize('json', [obj])
print(json_str)
data = json.loads(json_str)[0]['fields']
# Exclude any MPTTModel fields