Commit c7517f56 by Kálmán Viktor

dashboard: fix system input in template create

parent 988d4d28
......@@ -464,7 +464,6 @@ class NodeForm(forms.ModelForm):
class TemplateForm(forms.ModelForm):
networks = forms.ModelMultipleChoiceField(
queryset=VLANS, required=False)
system = forms.CharField(widget=forms.TextInput)
parent_type = forms.CharField(required=False)
def __init__(self, *args, **kwargs):
......@@ -613,6 +612,9 @@ class TemplateForm(forms.ModelForm):
class Meta:
model = InstanceTemplate
exclude = ('state', 'disks', )
widgets = {
'system': forms.TextInput
}
class TemplateCloneForm(forms.ModelForm):
......
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