Fixed an Oracle test failure introduced in [12226].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2010-01-19 18:09:03 +00:00
parent b3e1162ca5
commit fb5f8d7b14
1 changed files with 4 additions and 2 deletions

View File

@ -66,8 +66,10 @@ __test__ = {'API_TESTS': """
>>> Article.publications.through._meta.fields[2].get_attname_column()
('publication_id', 'publication_id')
>>> Article._meta.get_field('publications').m2m_db_table()
'model_package_article_publications'
# The oracle backend truncates the name to 'model_package_article_publ233f'.
>>> Article._meta.get_field('publications').m2m_db_table() \\
... in ('model_package_article_publications', 'model_package_article_publ233f')
True
>>> Article._meta.get_field('publications').m2m_column_name()
'article_id'