From ade992c61e15fbc83d87bfc688c0f844b6ef19fd Mon Sep 17 00:00:00 2001 From: Erik Romijn Date: Sun, 24 Feb 2013 13:20:41 +0100 Subject: Fixed #16302 -- Ensure contrib.comments is IPv6 capable Changed the ip_address field for Comment to GenericIPAddressField. Added instructions to the release notes on how to update the schema of existing databases. --- django/contrib/comments/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py index c263ea7d10..bc4d932464 100644 --- a/django/contrib/comments/models.py +++ b/django/contrib/comments/models.py @@ -60,7 +60,7 @@ class Comment(BaseCommentAbstractModel): # Metadata about the comment submit_date = models.DateTimeField(_('date/time submitted'), default=None) - ip_address = models.IPAddressField(_('IP address'), blank=True, null=True) + ip_address = models.GenericIPAddressField(_('IP address'), unpack_ipv4=True, blank=True, null=True) is_public = models.BooleanField(_('is public'), default=True, help_text=_('Uncheck this box to make the comment effectively ' \ 'disappear from the site.')) -- cgit v1.3