1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

Added field.attname to Options.name_map

The change also removed allow_explicit_fk from sql/query.py.
This commit is contained in:
Anssi Kääriäinen
2013-06-18 21:14:07 +03:00
parent 31e6d58d46
commit c21e86ab9e
3 changed files with 14 additions and 25 deletions

View File

@@ -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')