Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
724e1aa1
authored
Mar 08, 2023
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotplug' into 'master'
bugfix num_cores See merge request
!24
parents
1bf5af6b
27f5b2df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
circle/dashboard/forms.py
+1
-0
circle/dashboard/templates/dashboard/_template-create.html
+1
-0
No files found.
circle/dashboard/forms.py
View file @
724e1aa1
...
@@ -563,6 +563,7 @@ class TemplateForm(forms.ModelForm):
...
@@ -563,6 +563,7 @@ class TemplateForm(forms.ModelForm):
self
.
initial
[
'priority'
]
=
10
self
.
initial
[
'priority'
]
=
10
self
.
initial
[
'ram_size'
]
=
512
self
.
initial
[
'ram_size'
]
=
512
self
.
initial
[
'max_ram_size'
]
=
512
self
.
initial
[
'max_ram_size'
]
=
512
self
.
initial
[
'num_cores_max'
]
=
1
lease_queryset
=
(
lease_queryset
=
(
Lease
.
get_objects_with_level
(
"operator"
,
self
.
user
)
.
distinct
()
|
Lease
.
get_objects_with_level
(
"operator"
,
self
.
user
)
.
distinct
()
|
...
...
circle/dashboard/templates/dashboard/_template-create.html
View file @
724e1aa1
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<legend>
{% trans "Resource configuration" %}
</legend>
<legend>
{% trans "Resource configuration" %}
</legend>
{% include "dashboard/_resources-sliders.html" with field_priority=form.priority field_num_cores=form.num_cores field_ram_size=form.ram_size %}
{% include "dashboard/_resources-sliders.html" with field_priority=form.priority field_num_cores=form.num_cores field_ram_size=form.ram_size %}
{{ form.max_ram_size|as_crispy_field }}
{{ form.max_ram_size|as_crispy_field }}
{{ form.num_cores_max|as_crispy_field }}
</fieldset>
</fieldset>
<fieldset>
<fieldset>
...
...
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