Commit abcbb841 by Kálmán Viktor

dashboard: fix template sliders on form error

parent 940ed9ff
...@@ -346,7 +346,7 @@ class TemplateForm(forms.ModelForm): ...@@ -346,7 +346,7 @@ class TemplateForm(forms.ModelForm):
@property @property
def helper(self): def helper(self):
helper = FormHelper() helper = FormHelper()
if not self.instance.pk: if not self.instance.pk and len(self.errors) < 1:
self.instance.priority = 20 self.instance.priority = 20
self.instance.ram_size = 512 self.instance.ram_size = 512
self.instance.num_cores = 2 self.instance.num_cores = 2
......
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