diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-02-26 22:17:45 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-02-26 22:17:45 +0000 |
| commit | f7fbc289ad7e13436f17939046cd1adfe438b126 (patch) | |
| tree | 472d3b5beab6b02ba38c4044e3e4e6e650770313 /tests/regressiontests/string_lookup | |
| parent | 00f051985933abd32c545f54487de571df813c67 (diff) | |
Reverted [7151] since it breaks exact IP lookups on PostgreSQL. Reopens #708
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/string_lookup')
| -rw-r--r-- | tests/regressiontests/string_lookup/models.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/regressiontests/string_lookup/models.py b/tests/regressiontests/string_lookup/models.py index 1bdb2d4452..9deeb18763 100644 --- a/tests/regressiontests/string_lookup/models.py +++ b/tests/regressiontests/string_lookup/models.py @@ -39,7 +39,6 @@ class Base(models.Model): class Article(models.Model): name = models.CharField(max_length=50) text = models.TextField() - submitted_from = models.IPAddressField(blank=True, null=True) def __str__(self): return "Article %s" % self.name @@ -99,11 +98,4 @@ __test__ = {'API_TESTS': ur""" >>> Article.objects.get(text__contains='quick brown fox') <Article: Article Test> - -# Regression test for #708: "like" queries on IP address fields require casting -# to text (on PostgreSQL). ->>> Article(name='IP test', text='The body', submitted_from='192.0.2.100').save() ->>> Article.objects.filter(submitted_from__contains='192.0.2') -[<Article: Article IP test>] - """} |
