Bug fixed in fleet association on board update

Change-Id: Ia29a76afe201bddc427eab1546dc9bb177ded04e
changes/32/627732/1 0.4.2
Carmelo Romeo 4 years ago
parent 7321b63630
commit ea836e1cfb
  1. 5
      iotronic_ui/iot/boards/forms.py

@ -87,7 +87,8 @@ class UpdateBoardForm(forms.SelfHandlingForm):
label=_("Fleets List"),
widget=forms.Select(
attrs={'class': 'switchable', 'data-slug': 'slug-fleet'}),
help_text=_("Select fleet in this pool ")
help_text=_("Select fleet in this pool "),
required=False
)
mobile = forms.BooleanField(label=_("Mobile"), required=False)
@ -162,6 +163,8 @@ class UpdateBoardForm(forms.SelfHandlingForm):
# {"name": data["name"],
# "mobile": data["mobile"],
# "location": data["location"]})
if data["fleet_list"] == '':
data["fleet_list"] = None
iotronic.board_update(request, data["uuid"],
{"name": data["name"],

Loading…
Cancel
Save