summaryrefslogtreecommitdiffstats
path: root/packages/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/models.py')
-rw-r--r--packages/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/models.py b/packages/models.py
index 820e61b..7a7a81c 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -173,7 +173,9 @@ class FlagRequest(models.Model):
user = models.ForeignKey(User, blank=True, null=True)
user_email = models.EmailField('email address')
created = models.DateTimeField(editable=False)
- ip_address = models.IPAddressField('IP address')
+ # Great work, Django... https://code.djangoproject.com/ticket/18212
+ ip_address = models.GenericIPAddressField(verbose_name='IP address',
+ unpack_ipv4=True)
pkgbase = models.CharField(max_length=255, db_index=True)
version = models.CharField(max_length=255, default='')
repo = models.ForeignKey(Repo)