mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 14:24:48 +03:00
Update mixins.py
This commit is contained in:
parent
aa9e6c2de5
commit
bbe1447f55
|
@ -76,7 +76,7 @@ class UpdateModelMixin(object):
|
|||
def partial_update(self, request, *args, **kwargs):
|
||||
kwargs['partial'] = True
|
||||
return self.update(request, *args, **kwargs)
|
||||
|
||||
|
||||
def get_success_headers(self, data):
|
||||
try:
|
||||
return {'Content-Location': data[api_settings.URL_FIELD_NAME]}
|
||||
|
|
Loading…
Reference in New Issue
Block a user