mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +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
98131ef31a
commit
edca49dcf1
1 changed files with 2 additions and 0 deletions
|
@ -474,6 +474,8 @@ class User(AbstractBaseUser):
|
||||||
machine_parent.clean()
|
machine_parent.clean()
|
||||||
domain = Domain()
|
domain = Domain()
|
||||||
domain.name = self.pseudo.replace('_','-').lower() + str(all_machines.count())
|
domain.name = self.pseudo.replace('_','-').lower() + str(all_machines.count())
|
||||||
|
domain.interface_parent = interface_cible
|
||||||
|
domain.clean()
|
||||||
machine_parent.save()
|
machine_parent.save()
|
||||||
interface_cible.machine = machine_parent
|
interface_cible.machine = machine_parent
|
||||||
interface_cible.save()
|
interface_cible.save()
|
||||||
|
|
Loading…
Reference in a new issue