diff options
author | Daniel Pyrathon <pirosb3@gmail.com> | 2015-01-06 19:16:35 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-01-06 19:25:12 -0500 |
commit | fb48eb05816b1ac87d58696cdfe48be18c901f16 (patch) | |
tree | 3d2e981b6f3fafdeb7310d0734fb148ebb7f6aef /tests/generic_relations_regress | |
parent | 749d23251bbd6564341405e6f8c1da129b8307e7 (diff) | |
download | django-fb48eb05816b1ac87d58696cdfe48be18c901f16.tar.gz |
Fixed #12663 -- Formalized the Model._meta API for retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
Diffstat (limited to 'tests/generic_relations_regress')
-rw-r--r-- | tests/generic_relations_regress/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_relations_regress/tests.py b/tests/generic_relations_regress/tests.py index 65afa9f298..88243bade0 100644 --- a/tests/generic_relations_regress/tests.py +++ b/tests/generic_relations_regress/tests.py @@ -260,7 +260,7 @@ class GenericRelationTests(TestCase): form = GenericRelationForm({'links': None}) self.assertTrue(form.is_valid()) form.save() - links = HasLinkThing._meta.get_field_by_name('links')[0] + links = HasLinkThing._meta.get_field('links') self.assertEqual(links.save_form_data_calls, 1) def test_ticket_22998(self): |