Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Create view returns url of result with 'ok' status

  • Loading branch information...
commit 8b701268942c1460df87f61bfadf35f8ca6a2e32 1 parent 6e21a2b
@xobb1t xobb1t authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  project/lint/views.py
View
2  project/lint/views.py
@@ -15,7 +15,7 @@ def create(request):
report = form.save()
request.session['report_pk'] = report.pk
process_report.delay(report)
- result = {'status': 'ok', 'hash': report.hash}
+ result = {'status': 'ok', 'url': report.get_absolute_url()}
else:
result = {'status': 'error'}
return HttpResponse(json.dumps(result), mimetype='application/json')

0 comments on commit 8b70126

Please sign in to comment.
Something went wrong with that request. Please try again.