Commit c7517f56 by Kálmán Viktor

dashboard: fix system input in template create

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