diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-06-18 21:14:07 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-07-31 16:02:36 +0300 |
| commit | c21e86ab9e3e5ebd6d245d038cb0cb352cd84c3a (patch) | |
| tree | dc9ca81110625fc61ed6311d2c0299de7f3e6a70 /tests | |
| parent | 31e6d58d46894ca35080b4eab7967e4c6aae82d4 (diff) | |
Added field.attname to Options.name_map
The change also removed allow_explicit_fk from sql/query.py.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lookup/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py index c9891c846f..2beb43929b 100644 --- a/tests/lookup/tests.py +++ b/tests/lookup/tests.py @@ -470,7 +470,8 @@ class LookupTests(TestCase): self.fail('FieldError not raised') except FieldError as ex: self.assertEqual(str(ex), "Cannot resolve keyword 'pub_date_year' " - "into field. Choices are: author, headline, id, pub_date, tag") + "into field. Choices are: author, author_id, headline, " + "id, pub_date, tag") try: Article.objects.filter(headline__starts='Article') self.fail('FieldError not raised') |
