From e546a2228a6c5c851941d42261735751cd936520 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Tue, 28 Aug 2018 12:31:43 +0200 Subject: [PATCH] Fix l'erreur sur l'utilisation du massive bootstrap form pour l'ipv4 --- machines/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/views.py b/machines/views.py index 3d71acab..02c3c671 100644 --- a/machines/views.py +++ b/machines/views.py @@ -153,7 +153,7 @@ def generate_ipv4_choices(form_obj): """ f_ipv4 = form_obj.fields['ipv4'] used_mtype_id = [] - choices = '{"":[{key:"",value:'+_("Select a machine type first.},") + choices = '{"":[{key:"",value:"'+_("Select a machine type first.") + '"}' mtype_id = -1 for ip in (f_ipv4.queryset