Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
73cc4deb
Commit
73cc4deb
authored
Sep 19, 2018
by
BAIRE Anthony
Browse files
rename "Queue type" as "Queue"
because we select a queue by its name
parent
13aa574a
Changes
2
Hide whitespace changes
Inline
Side-by-side
django/allgo/main/forms.py
View file @
73cc4deb
...
@@ -100,7 +100,7 @@ class JobForm(forms.ModelForm):
...
@@ -100,7 +100,7 @@ class JobForm(forms.ModelForm):
queue_id
=
forms
.
ModelChoiceField
(
queue_id
=
forms
.
ModelChoiceField
(
queryset
=
JobQueue
.
objects
.
all
().
distinct
(),
queryset
=
JobQueue
.
objects
.
all
().
distinct
(),
initial
=
1
,
initial
=
1
,
label
=
'Queue
type
'
,
label
=
'Queue'
,
label_suffix
=
''
,
label_suffix
=
''
,
)
)
param
=
forms
.
CharField
(
label
=
'Parameters'
,
label_suffix
=
''
,
required
=
False
)
param
=
forms
.
CharField
(
label
=
'Parameters'
,
label_suffix
=
''
,
required
=
False
)
...
@@ -178,7 +178,7 @@ class WebappForm(forms.ModelForm):
...
@@ -178,7 +178,7 @@ class WebappForm(forms.ModelForm):
job_queue
=
forms
.
ModelChoiceField
(
job_queue
=
forms
.
ModelChoiceField
(
queryset
=
JobQueue
.
objects
.
all
().
distinct
(),
queryset
=
JobQueue
.
objects
.
all
().
distinct
(),
initial
=
1
,
initial
=
1
,
label
=
'Default queue
type
'
,
label
=
'Default queue'
,
label_suffix
=
''
)
label_suffix
=
''
)
entrypoint
=
forms
.
CharField
(
label
=
"Entrypoint"
,
label_suffix
=
""
,
entrypoint
=
forms
.
CharField
(
label
=
"Entrypoint"
,
label_suffix
=
""
,
initial
=
"/home/allgo/entrypoint"
)
initial
=
"/home/allgo/entrypoint"
)
...
...
django/allgo/main/models.py
View file @
73cc4deb
...
@@ -460,7 +460,7 @@ class Quota(TimeStampModel):
...
@@ -460,7 +460,7 @@ class Quota(TimeStampModel):
class
Job
(
TimeStampModel
):
class
Job
(
TimeStampModel
):
"""
"""
Jobs ran with the specific data (user, webapp, queue
type
, ...)
Jobs ran with the specific data (user, webapp, queue, ...)
"""
"""
#### Job States ####
#### Job States ####
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment