Browse Source

fixed toggle message/added logs in case of errors

master^2
wcolmenares 3 years ago
parent
commit
7702b51385
  1. 2
      jobs/views.py

2
jobs/views.py

@ -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')

Loading…
Cancel
Save