diff options
author | Dan McGee <dpmcgee@gmail.com> | 2012-04-30 16:52:13 -0500 |
---|---|---|
committer | Dan McGee <dpmcgee@gmail.com> | 2012-04-30 16:53:56 -0500 |
commit | 979939714a7c42453200944891489387a59f489f (patch) | |
tree | 22e17bc707fb0ba69379465583fc2d943f47413c | |
parent | 8b08e26c148ab21f74a9828c254e9b7fd98c3169 (diff) | |
download | website-979939714a7c42453200944891489387a59f489f.tar.gz website-979939714a7c42453200944891489387a59f489f.zip |
Convert BannedIP to a GenericIPAddressField
-rw-r--r-- | mycomments/models.py | 2 |
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 |