summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorErik Romijn <eromijn@solidlinks.nl>2013-02-24 13:20:41 +0100
committerErik Romijn <eromijn@solidlinks.nl>2013-02-24 13:58:38 +0100
commitade992c61e15fbc83d87bfc688c0f844b6ef19fd (patch)
tree896a14f588761de03761b1bfe5abba9b2595ced8 /django
parente4ee3d8fcac987bc91ab9c559f39f52949227b76 (diff)
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.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/comments/models.py2
1 files changed, 1 insertions, 1 deletions
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.'))