Commit 162f95e2 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

use genericipaddressfields

parent 6501ff8e
......@@ -245,7 +245,7 @@ class LinkClick(models.Model):
url = models.ForeignKey(ShortURL, verbose_name=_(u'url'))
#url = models.CharField(max_length=255, verbose_name=_(u'URL'), db_index=True)
#short_url = models.CharField(max_length=75, verbose_name=_(u'Short url'), db_index=True)
ip_address = models.IPAddressField(verbose_name=_(u'IP Address'), null=True, db_index=True)
ip_address = models.GenericIPAddressField(verbose_name=_(u'IP Address'), null=True, db_index=True)
campaign = models.ForeignKey(Campaign, verbose_name=_(u'Campaign'))
......@@ -281,7 +281,7 @@ class OpenEmail(models.Model):
"""
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
ip_address = models.IPAddressField(verbose_name=_(u'IP Address'), null=True, db_index=True)
ip_address = models.GenericIPAddressField(verbose_name=_(u'IP Address'), null=True, db_index=True)
campaign = models.ForeignKey(Campaign, verbose_name=_(u'Campaign'))
contact = models.ForeignKey(Contact, verbose_name=_(u'Contact'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment