Re: Does partial_update updates DB partially?

2019-02-04 Thread vladsol2009
Found the solution. http://chibisov.github.io/drf-extensions/docs/#partialupdateserializermixin It's bad that this is not in the standard DRF functionality. пятница, 1 февраля 2019 г., 21:30:17 UTC+2 пользователь vlads...@gmail.com написал: > > Hi, all. > > In DRF, it is possible to update only

Re: Does partial_update updates DB partially?

2019-02-02 Thread vladsol2009
Again, my question not only about the PATCH method (there is no problems with it). My question is about the partial model update (or, SQL statement, generated by PATCH method) Example: model: class TestModel(models.Model): field_a = models.CharField() field_b = models.CharField() fiel

Re: Does partial_update updates DB partially?

2019-02-02 Thread vladsol2009
Are you joking? :) OK, again: "Unfortunately, there is no reply on my question. My question is about a partial update of the columns in the database. At this moment, PATCH method with only one updated field updates the all columns in the table." On Saturday, February 2, 2019 at 5:21:46 PM UTC+

Re: Does partial_update updates DB partially?

2019-02-01 Thread vladsol2009
Unfortunately, there is no reply on my question. My question is about a partial update of the columns in the database. At this moment, PATCH method with only one updated field updates the all columns in the table. On Saturday, February 2, 2019 at 7:05:21 AM UTC+2, nsamba taufeeq wrote: > > >

Re: Does partial_update updates DB partially?

2019-02-01 Thread vladsol2009
I mean, to generate SQL UPDATE statement with only columns, specified in request (but not all DB columns). -- 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

Does partial_update updates DB partially?

2019-02-01 Thread vladsol2009
Hi, all. In DRF, it is possible to update only DB fields, specified in "PATCH" request? -- 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 django-rest-f