please, do send the code or the link
[image: --] Felipe V. Rodrigues [image: https://]about.me/fvr <https://about.me/fvr?promo=email_sig> On Tue, May 31, 2016 at 4:40 PM, Paul Mwenimpako Siame < [email protected]> wrote: > I have simple apiview, I am trying to deserialize a JSON request from my > mobile app and patch a single field (increasing the number of likes on a > product model for my shopping app). I have actually come to the extent of > just copying and pasting your tutorial code and modifying it to fit my > context of use (changing variable names and declaring permission classes) > but I still just get an error 400 when I try to like a product.. I have a > Stackoverflow on it if that could help, my code is there.. am I allowed to > post links here? > > On Fri, May 27, 2016 at 8:44 AM Xavier Ordoquy <[email protected]> > wrote: > >> Hi, >> >> > Le 26 mai 2016 à 22:19, Paul Mwenimpako Siame <[email protected]> >> a écrit : >> > >> > How do I patch a specific feild in DRF? >> >> This is a bit vague. >> You mean you want to sent a PATCH request to DRF and update a single >> field ? >> >> > your tutorials and API are confusing m and the example code doesn't >> work.. >> >> You need to be more specific about what you didn’t understand and what >> doesn’t work. >> Otherwise, we’ll assume you’re doing something wrong but can’t guess what. >> >> > I have a product model and I want to update the number of likes it get >> by sending a JSON request and then update only the likes field of my model >> from the sent JSON, so how do I do that? >> >> Do you use ViewSets and routers or simple APIView ? >> >> Regards, >> Xavier, >> Linovia. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Django REST framework" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/django-rest-framework/vTwmoiLRlD8/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- > > Paul Mwenimpako Siame > > about.me/paulsiame > > -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
