Ticket #16302: ipv6-comments.diff

File ipv6-comments.diff, 777 bytes (added by toofishes, 4 years ago)
  • django/contrib/comments/models.py

     
    5757
    5858    # Metadata about the comment
    5959    submit_date = models.DateTimeField(_('date/time submitted'), default=None)
    60     ip_address  = models.IPAddressField(_('IP address'), blank=True, null=True)
     60    ip_address  = models.GenericIPAddressField(_('IP address'),
     61                    unpack_ipv4=True, blank=True, null=True)
    6162    is_public   = models.BooleanField(_('is public'), default=True,
    6263                    help_text=_('Uncheck this box to make the comment effectively ' \
    6364                                'disappear from the site.'))
Back to Top