Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Create view returns url of result with 'ok' status

  • Loading branch information...
commit 8b701268942c1460df87f61bfadf35f8ca6a2e32 1 parent 6e21a2b
Dima Kukushkin xobb1t authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  project/lint/views.py
2  project/lint/views.py
@@ -15,7 +15,7 @@ def create(request):
15 15 report = form.save()
16 16 request.session['report_pk'] = report.pk
17 17 process_report.delay(report)
18   - result = {'status': 'ok', 'hash': report.hash}
  18 + result = {'status': 'ok', 'url': report.get_absolute_url()}
19 19 else:
20 20 result = {'status': 'error'}
21 21 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.