From d8270f8073a1f9a25f8737852c711da067fb9d4b Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 3 May 2018 06:40:04 +0200 Subject: [PATCH] Fix #119 : Plusieurs NS peuvent avoir le meme origin --- machines/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/models.py b/machines/models.py index 9ed973f2..9eb6323a 100644 --- a/machines/models.py +++ b/machines/models.py @@ -613,7 +613,7 @@ class Ns(RevMixin, AclMixin, models.Model): PRETTY_NAME = "Enregistrements NS" zone = models.ForeignKey('Extension', on_delete=models.PROTECT) - ns = models.OneToOneField('Domain', on_delete=models.PROTECT) + ns = models.ForeignKey('Domain', on_delete=models.PROTECT) class Meta: permissions = (