'Regression test for #708
"like" queries on IP address fields require casting with HOST() (on PostgreSQL).'

def test_ipaddress_on_postgresql(self):

    a = Article(name=u'IP    test', text=u'The    body', submitted_from=u'192.0.2.100')
    a.save()
    self.assertEqual(repr(Article.objects.filter(submitted_from__contains=u'192.0.2')), repr([a]))
    self.assertEqual(Article.objects.filter(submitted_from__contains=u'32').count(), 0)
