summaryrefslogtreecommitdiff
path: root/releng/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-04 08:37:09 -0500
committerDan McGee <dan@archlinux.org>2012-09-04 08:37:09 -0500
commit79b0ff49bd3319133502243ded4506fc2d56cd9e (patch)
tree12525f4e90901b4aafd16a46031820b745057124 /releng/models.py
parent0926cf30f4bacf7922c2f27e4f27f78f8182aee0 (diff)
Use GenericIPAddressField for releng test IP address field
We were already using this on package flag requests, and we can support IPv6 addresses here as well with minimal hassle. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng/models.py')
-rw-r--r--releng/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/releng/models.py b/releng/models.py
index 98454e95..d602e9e5 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -79,8 +79,10 @@ class Bootloader(IsoOption):
class Test(models.Model):
user_name = models.CharField(max_length=500)
- user_email = models.EmailField()
- ip_address = models.IPAddressField()
+ user_email = models.EmailField('email address')
+ # Great work, Django... https://code.djangoproject.com/ticket/18212
+ ip_address = models.GenericIPAddressField(verbose_name='IP address',
+ unpack_ipv4=True)
created = models.DateTimeField(editable=False)
iso = models.ForeignKey(Iso)