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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user