From b648078b4e98f16a98968ec72f6cb91c3f2fe0b2 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sun, 22 Sep 2019 00:34:10 +0200 Subject: [PATCH] [machines/views] Domain MUST be saved to get the right extension --- machines/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/machines/views.py b/machines/views.py index bdbb1a83..a07d7e75 100644 --- a/machines/views.py +++ b/machines/views.py @@ -304,8 +304,7 @@ def edit_interface(request, interface_instance, **_kwargs): new_machine_obj.save() if interface_form.changed_data: new_interface_obj.save() - if domain_form.changed_data: - new_domain_obj.save() + new_domain_obj.save() messages.success(request, _("The machine was edited.")) return redirect(reverse( 'users:profil',