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
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
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+
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:
>
>
>
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
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