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 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.
