Commit f6edd85e authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Enforcing PEP 3135

Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <>
parent 43f1ca85
......@@ -547,13 +547,14 @@ class JobCreate(SuccessMessageMixin, LoginRequiredMixin, CreateView):
if self.request.FILES:
latest_job = Job.objects.filter('-id')[0]
return super(JobCreate, self).form_valid(form)
return super().form_valid(form)
def get_context_data(self, **kwargs):
"""Pass on the docker name to the template"""
webapp = Webapp.objects.get(docker_name=self.kwargs['docker_name'])
kwargs['webapp_name'] =
return super(JobCreate, self).get_context_data(**kwargs)
return super().get_context_data(**kwargs)
def get_form_kwargs(self):
"""Return webapp data"""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment