summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-08-23 21:30:25 -0500
committerDan McGee <dan@archlinux.org>2014-09-01 18:26:05 -0500
commit9d0db65025c229941d40e1d4f02f092c9d205723 (patch)
tree1d07b2a2360012ec64a2b22eee15ee5e5aee61b2 /packages
parent28d486870de2c68b53e544a7082c991983d0d763 (diff)
Fix up some IP address field issues
Ensure we always coerce values to unicode in our __unicode__ method, and remove some now unneeded verbosity and comments since the upstream bug has been fixed. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/models.py b/packages/models.py
index da8adc56..dd69e7d3 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -181,9 +181,7 @@ class FlagRequest(models.Model):
user = models.ForeignKey(User, blank=True, null=True)
user_email = models.EmailField('email address')
created = models.DateTimeField(editable=False, db_index=True)
- # Great work, Django... https://code.djangoproject.com/ticket/18212
- ip_address = models.GenericIPAddressField(verbose_name='IP address',
- unpack_ipv4=True)
+ ip_address = models.GenericIPAddressField('IP address', unpack_ipv4=True)
pkgbase = models.CharField(max_length=255, db_index=True)
pkgver = models.CharField(max_length=255)
pkgrel = models.CharField(max_length=255)