fixed toggle message/added logs in case of errors
This commit is contained in:
parent
7108f538e2
commit
7702b51385
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ def change_status(request):
|
||||||
)
|
)
|
||||||
except Job.DoesNotExist:
|
except Job.DoesNotExist:
|
||||||
logger.error(
|
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'))
|
request.user, request.POST.get('job_id'))
|
||||||
)
|
)
|
||||||
return redirect('jobs:my_jobs')
|
return redirect('jobs:my_jobs')
|
||||||
|
|
Loading…
Reference in a new issue