mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
Fix perfom_update accordingly to perform_create
This commit is contained in:
parent
97cb6429e5
commit
4d01b85431
|
@ -77,7 +77,7 @@ class UpdateModelMixin(object):
|
|||
return Response(serializer.data)
|
||||
|
||||
def perform_update(self, serializer):
|
||||
serializer.save()
|
||||
return serializer.save()
|
||||
|
||||
def partial_update(self, request, *args, **kwargs):
|
||||
kwargs['partial'] = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user