summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2012-04-30 16:52:13 -0500
committerDan McGee <dpmcgee@gmail.com>2012-04-30 16:53:56 -0500
commit979939714a7c42453200944891489387a59f489f (patch)
tree22e17bc707fb0ba69379465583fc2d943f47413c
parent8b08e26c148ab21f74a9828c254e9b7fd98c3169 (diff)
downloadwebsite-979939714a7c42453200944891489387a59f489f.tar.gz
website-979939714a7c42453200944891489387a59f489f.zip
Convert BannedIP to a GenericIPAddressField
-rw-r--r--mycomments/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mycomments/models.py b/mycomments/models.py
index aad81a0..dabc107 100644
--- a/mycomments/models.py
+++ b/mycomments/models.py
@@ -7,7 +7,7 @@ class MyComment(Comment):
verbose_name = "Comment"
class BannedIP(models.Model):
- ip_address = models.IPAddressField(unique=True)
+ ip_address = models.GenericIPAddressField(unpack_ipv4=True, unique=True)
def __unicode__(self):
return u"%s" % self.ip_address