'Runs the specified job.'

def run_job_view(self, request, pk):

    try:
        job = Job.objects.get(pk=pk)
    except Job.DoesNotExist:
        raise Http404
    job.run()
    messages.success(request, _(("The    job    '%(job)s'    was    run    successfully." % {'job': job})))
    if ('inline' in request.GET):
        redirect = (request.path + '../../')
    else:
        redirect = request.REQUEST.get('next', (request.path + '../'))
    return HttpResponseRedirect(redirect)
