Bug fixed in fleet association on board update
Change-Id: Ia29a76afe201bddc427eab1546dc9bb177ded04e
This commit is contained in:
parent
7321b63630
commit
ea836e1cfb
|
@ -87,7 +87,8 @@ class UpdateBoardForm(forms.SelfHandlingForm):
|
||||||
label=_("Fleets List"),
|
label=_("Fleets List"),
|
||||||
widget=forms.Select(
|
widget=forms.Select(
|
||||||
attrs={'class': 'switchable', 'data-slug': 'slug-fleet'}),
|
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)
|
mobile = forms.BooleanField(label=_("Mobile"), required=False)
|
||||||
|
@ -162,6 +163,8 @@ class UpdateBoardForm(forms.SelfHandlingForm):
|
||||||
# {"name": data["name"],
|
# {"name": data["name"],
|
||||||
# "mobile": data["mobile"],
|
# "mobile": data["mobile"],
|
||||||
# "location": data["location"]})
|
# "location": data["location"]})
|
||||||
|
if data["fleet_list"] == '':
|
||||||
|
data["fleet_list"] = None
|
||||||
|
|
||||||
iotronic.board_update(request, data["uuid"],
|
iotronic.board_update(request, data["uuid"],
|
||||||
{"name": data["name"],
|
{"name": data["name"],
|
||||||
|
|
Loading…
Reference in New Issue