We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5009aef commit 2b6245dCopy full SHA for 2b6245d
rest_framework/mixins.py
@@ -27,7 +27,7 @@ def perform_create(self, serializer):
27
28
def get_success_headers(self, data):
29
try:
30
- return {'Location': data[api_settings.URL_FIELD_NAME]}
+ return {'Location': str(data[api_settings.URL_FIELD_NAME])}
31
except (TypeError, KeyError):
32
return {}
33
0 commit comments