Fixed wrong property.

This commit is contained in:
Antoine Nguyen
2018-11-20 17:25:44 +01:00
parent 7336996ef0
commit a4e4b9a728
+1 -1
View File
@@ -75,7 +75,7 @@ class DNSRecord(models.Model):
except AttributeError:
pass
if self.type == "dkim" and result != self.dkim_public_key:
if self.type == "dkim" and result != self.domain.dkim_public_key:
self.error = _("Public key mismatchs")
self.updated = timezone.now()
return