Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an Oracle test failure introduced in [12226].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fb5f8d7b14c6613dcfa600da11ea499c8551ba11 1 parent b3e1162
@ikelly ikelly authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/modeltests/model_package/tests.py
View
6 tests/modeltests/model_package/tests.py
@@ -66,8 +66,10 @@ class Meta:
>>> 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'
Please sign in to comment.
Something went wrong with that request. Please try again.