Yezy Ilomo
Yezy Ilomo
Currently it's not possible to do it dynamically, you could have 2 seriealizers or just remove return_pk and add another MethodSerializerField which returns a flat list if ids, I think...
You could also return only ids in userProfile field with `query={userProfile{id}}` but it'll be in form of `[{id: 1}, {id: 2}, ...]` which is not that bad because you can...
It looks like you want to do a partial update but you are using PUT which is http method for a full update. If you want to do a partial...
what’s the problem you’re facing?.
I was making something like this but for GET method only, I think I've managed to make it more advanced and flexible, for those who want to check it out...
Hey @altanmur I think a good way to implement this would be to allow `filter` parameter on `/object///` route in order to give users a freedom to filter records however...
Yes it does.
> How should I send the session_id? > Only as Url parameter stg like: > https://example.com/api/product.template/5?session_id=that_looooong_string > Is it secure? There are lots of url hunters.. > Is there any...
> Can this be used only to get a product list and price without any authentication? > like [https://domain.com/api/product.template/?query={name,qty_available}](https://domain.com/api/product.template/?query=%7Bname,qty_available%7D) @armdan You can accomplish this with a little tweak on controllers.py...
What kind of error are you getting?.