mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
Hot fix : empèche le save d'une interface/machine si le name est déjà pris par un domain
This commit is contained in:
parent
fe1e97b65c
commit
410df91d61
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue