#36258: "error": "Model instances passed to related filters must be saved."
----------------------------+-------------------------------------------
     Reporter:  SmartDev20  |                     Type:  Bug
       Status:  new         |                Component:  Error reporting
      Version:  5.2         |                 Severity:  Normal
     Keywords:              |             Triage Stage:  Unreviewed
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+-------------------------------------------
 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."
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36258>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701959a73c7c0-6779e5b4-51c2-4049-9e7e-5b23e12790df-000000%40eu-central-1.amazonses.com.

Reply via email to