Commit 22799031 authored by sebastien letort's avatar sebastien letort
Browse files

Only the published webapp versions are shown in the jobCreate view.

parent 025255cd
......@@ -1186,7 +1186,8 @@ class JobCreate(AllAccessMixin, SuccessMessageMixin, CreateView):
versions = natsort.versorted(set(v for v, in WebappVersion.objects
.filter(webapp=webapp, state__in=( WebappVersion.SANDBOX,
WebappVersion.COMMITTED,
WebappVersion.READY))
WebappVersion.READY),
published=True)
.values_list("number")))
# also list 'sandbox' if the sandbox is running and if the current user
......
Markdown is supported
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