From 8182505fd2cedd146d284b1b04c3a1c46d42a96d Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sat, 8 Aug 2020 14:53:47 +0200 Subject: [PATCH] Replace full_clean with simple clean, fix interface registering on multi-database --- machines/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/machines/models.py b/machines/models.py index 7cd8c270..9de7d307 100644 --- a/machines/models.py +++ b/machines/models.py @@ -1830,11 +1830,12 @@ class Ipv6List(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): " with the machine." ) ) + self.validate_unique() super(Ipv6List, self).clean(*args, **kwargs) def save(self, *args, **kwargs): """Force the call to clean before saving.""" - self.full_clean() + self.clean() super(Ipv6List, self).save(*args, **kwargs) def __str__(self): @@ -1937,7 +1938,7 @@ class Domain(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): """ if not self.get_extension(): raise ValidationError(_("Invalid extension.")) - self.full_clean() + self.clean() super(Domain, self).save(*args, **kwargs) @cached_property