mirror of
https://github.com/django/django.git
synced 2025-11-19 03:08:59 +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:
parent
31e6d58d46
commit
c21e86ab9e
3 changed files with 14 additions and 25 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue