Use GenericIPAddressField to allow IPv6

This commit is contained in:
Bastian Blank 2013-10-17 21:02:54 +00:00
parent d2eab62ac4
commit b161265cad

View File

@ -36,7 +36,7 @@ def domain_blacklist_validator(value):
class Domain(models.Model):
domain = models.CharField(max_length=256, unique=True)
nameserver_ip = models.IPAddressField(
nameserver_ip = models.GenericIPAddressField(
max_length=256,
help_text="An IP where the nsupdates for this domain will be sent to")
nameserver_update_key = models.CharField(max_length=256)