mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Merge branch 'fix_register' into 'dev'
Replace full_clean with simple clean, fix interface registering on multi-database See merge request re2o/re2o!551
This commit is contained in:
commit
ee8948dfb6
1 changed files with 3 additions and 2 deletions
|
@ -1830,11 +1830,12 @@ class Ipv6List(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model):
|
||||||
" with the machine."
|
" with the machine."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
self.validate_unique()
|
||||||
super(Ipv6List, self).clean(*args, **kwargs)
|
super(Ipv6List, self).clean(*args, **kwargs)
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
"""Force the call to clean before saving."""
|
"""Force the call to clean before saving."""
|
||||||
self.full_clean()
|
self.clean()
|
||||||
super(Ipv6List, self).save(*args, **kwargs)
|
super(Ipv6List, self).save(*args, **kwargs)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
@ -1937,7 +1938,7 @@ class Domain(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model):
|
||||||
"""
|
"""
|
||||||
if not self.get_extension():
|
if not self.get_extension():
|
||||||
raise ValidationError(_("Invalid extension."))
|
raise ValidationError(_("Invalid extension."))
|
||||||
self.full_clean()
|
self.clean()
|
||||||
super(Domain, self).save(*args, **kwargs)
|
super(Domain, self).save(*args, **kwargs)
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
|
Loading…
Reference in a new issue