From edca49dcf1528f66da0db793e300a2f8d5c3b998 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 28 Sep 2017 15:29:48 +0000 Subject: [PATCH] =?UTF-8?q?Hot=20fix=20:=20emp=C3=A8che=20le=20save=20d'un?= =?UTF-8?q?e=20interface/machine=20si=20le=20name=20est=20d=C3=A9j=C3=A0?= =?UTF-8?q?=20pris=20par=20un=20domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/models.py b/users/models.py index 5cd54d55..a69493ae 100644 --- a/users/models.py +++ b/users/models.py @@ -474,6 +474,8 @@ class User(AbstractBaseUser): machine_parent.clean() domain = Domain() domain.name = self.pseudo.replace('_','-').lower() + str(all_machines.count()) + domain.interface_parent = interface_cible + domain.clean() machine_parent.save() interface_cible.machine = machine_parent interface_cible.save()