Use GenericIPAddressField to allow IPv6
This commit is contained in:
parent
d2eab62ac4
commit
b161265cad
@ -36,7 +36,7 @@ def domain_blacklist_validator(value):
|
|||||||
|
|
||||||
class Domain(models.Model):
|
class Domain(models.Model):
|
||||||
domain = models.CharField(max_length=256, unique=True)
|
domain = models.CharField(max_length=256, unique=True)
|
||||||
nameserver_ip = models.IPAddressField(
|
nameserver_ip = models.GenericIPAddressField(
|
||||||
max_length=256,
|
max_length=256,
|
||||||
help_text="An IP where the nsupdates for this domain will be sent to")
|
help_text="An IP where the nsupdates for this domain will be sent to")
|
||||||
nameserver_update_key = models.CharField(max_length=256)
|
nameserver_update_key = models.CharField(max_length=256)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user