8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Merge branch '224-Fix-Changing-Domain' into 'dev'

[machines/views] Domain MUST be saved to get the right extension

See merge request federez/re2o!443
This commit is contained in:
klafyvel 2019-09-23 21:49:46 +02:00
commit b3f08673d6

View file

@ -304,8 +304,7 @@ def edit_interface(request, interface_instance, **_kwargs):
new_machine_obj.save() new_machine_obj.save()
if interface_form.changed_data: if interface_form.changed_data:
new_interface_obj.save() new_interface_obj.save()
if domain_form.changed_data: new_domain_obj.save()
new_domain_obj.save()
messages.success(request, _("The machine was edited.")) messages.success(request, _("The machine was edited."))
return redirect(reverse( return redirect(reverse(
'users:profil', 'users:profil',