You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hii, I'm using ROA as a client of a Django Rest Framework API. I defined in both sides a basic many to many field. In DRF i can read and write this via json as a list ok primary keys.
In ROA i can read this field correctly but for writing I can't: The clear() method doesn't work and add() throws thid error: Cannot add "<Model: XXXX>": instance is on database "None", value is on database "default"
It seems that this happens because it reads the model on the local database and not via the API.
Some useful information:
Hii, I'm using ROA as a client of a Django Rest Framework API. I defined in both sides a basic many to many field. In DRF i can read and write this via json as a list ok primary keys.
In ROA i can read this field correctly but for writing I can't: The clear() method doesn't work and add() throws thid error:
Cannot add "<Model: XXXX>": instance is on database "None", value is on database "default"
It seems that this happens because it reads the model on the local database and not via the API.
Some useful information:
How can I solve this?
The text was updated successfully, but these errors were encountered: