Prevent refresh from resubmitting comments (#715)

Closes #711
This commit is contained in:
Adarnof 2017-02-20 23:24:19 -05:00 committed by GitHub
parent e3e84158f8
commit 3d15cb9c57

View File

@ -138,6 +138,7 @@ def hr_application_view(request, app_id):
comment.text = form.cleaned_data['comment'] comment.text = form.cleaned_data['comment']
comment.save() comment.save()
logger.info("Saved comment by user %s to %s" % (request.user, app)) logger.info("Saved comment by user %s to %s" % (request.user, app))
return redirect(hr_application_view, app_id)
else: else:
logger.warn("User %s does not have permission to add ApplicationComments" % request.user) logger.warn("User %s does not have permission to add ApplicationComments" % request.user)
else: else: