fixed toggle message/added logs in case of errors

This commit is contained in:
wcolmenares 2019-03-23 11:57:11 -04:00
parent 7108f538e2
commit 7702b51385
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ def change_status(request):
)
except Job.DoesNotExist:
logger.error(
"the user {} tried to toggle the job id {} but it doesn't exists.".format(
"the user {} tried to toggle the job id {} but it doesn't exist.".format(
request.user, request.POST.get('job_id'))
)
return redirect('jobs:my_jobs')