Include 404 URL in response

This commit is contained in:
Oliver Walters committed 2021-02-27 22:44:38 +11:00
1 parent 5069882a7f
commit 19c76f7842
1 file changed
+2 -1
+2 -1
View File
@@ -58,7 +58,8 @@ class NotFoundView(AjaxView):
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
data = { data = {
'details': _('API endpoint not found') 'details': _('API endpoint not found'),
'url': request.build_absolute_uri(),
} }
return JsonResponse(data, status=404) return JsonResponse(data, status=404)