mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-27 01:13:46 +00:00
FIx bug creation machine
This commit is contained in:
parent
216547507e
commit
79d06eeb6b
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ class EditInterfaceForm(ModelForm):
|
||||||
self.fields['mac_address'].label = 'Adresse mac'
|
self.fields['mac_address'].label = 'Adresse mac'
|
||||||
self.fields['type'].label = 'Type de machine'
|
self.fields['type'].label = 'Type de machine'
|
||||||
self.fields['type'].empty_label = "Séléctionner un type de machine"
|
self.fields['type'].empty_label = "Séléctionner un type de machine"
|
||||||
self.fields['machine'].queryset = Machine.objects.all().select_related('user')
|
if "machine" in self.fields:
|
||||||
|
self.fields['machine'].queryset = Machine.objects.all().select_related('user')
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
data = super(EditInterfaceForm, self).clean()
|
data = super(EditInterfaceForm, self).clean()
|
||||||
|
|
Loading…
Reference in a new issue