Opened 22 hours ago

Closed 22 hours ago

#36258 closed Bug (invalid)

"error": "Model instances passed to related filters must be saved."

Reported by: Nabih Elshabrawi Owned by:
Component: Error reporting Version: 5.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I run this command

curl -X 'POST' \

'http://127.0.0.1:8000/api/dcim/devices/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-CSRFToken: 7Jn26w1vTrl1lYFF7sZLRgh5xclFfTDQNw7lQthQnocdjyHA1RZNNM6JPn2SrRcC' \
-d '{
"id": 81665,
"display": "1-B DIR NAMERA NORTH 380KV, SHQ-2 380KV,AL LAITH 380KV",
"name": "1-B DIR NAMERA NORTH 380KV, SHQ-2 380KV,AL LAITH 380KV",
"device_type": 466,
"device_role": 16,
"tenant": 1,
"platform": null,
"serial": "2102300766N0J2000267",
"asset_tag": null,
"site": 784,
"location": null,
"rack": 21576,
"position": 12,
"face": "front",
"parent_device": null,
"status": "active",
"airflow": null,
"primary_ip": null,
"primary_ip4": null,
"primary_ip6": null,
"cluster": null,
"virtual_chassis": null,
"vc_position": null,
"vc_priority": null,
"comments": "",
"local_context_data": null,
"custom_fields": {}

}'

I have this error "Model instances passed to related filters must be saved."

Change History (1)

comment:1 by David Sanders, 22 hours ago

Resolution: invalid
Status: newclosed

Yes you'll need to fix your application code 👍

Note: See TracTickets for help on using tickets.
Back to Top