Update by natay on Mon Oct 30 23:03:06 EDT 2017 from natay
@@ -9,7 +9,7 @@ from django.shortcuts import render, redirect
from django.urls import reverse
from django.contrib.auth.decorators import user_passes_test
-
+from . import auth
from . import tasks
from .forms import *
from .const import *
@@ -318,7 +318,7 @@ def analysis_run(request, id):
name = form.cleaned_data.get("name")
filled_json = form.process()
json_text = hjson.dumps(filled_json)
- job = analysis.create_job(owner=analysis.owner, json_text=json_text, name=name,
+ job = auth.create_job(analysis=analysis, user=analysis.owner, json_text=json_text, name=name,
type=analysis.type)
logger.info(tasks.HAS_UWSGI)
if tasks.HAS_UWSGI:
