Commit 27f5b2df by Karsa Zoltán István

bugfix num_cores

parent b4841f40
......@@ -563,6 +563,7 @@ class TemplateForm(forms.ModelForm):
self.initial['priority'] = 10
self.initial['ram_size'] = 512
self.initial['max_ram_size'] = 512
self.initial['num_cores_max'] = 1
lease_queryset = (
Lease.get_objects_with_level("operator", self.user).distinct() |
......
......@@ -15,6 +15,7 @@
<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 %}
{{ form.max_ram_size|as_crispy_field }}
{{ form.num_cores_max|as_crispy_field }}
</fieldset>
<fieldset>
......
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 sign in to comment