1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[boulder-oracle-sprint] fixed m2m creation bug with oracle: management was trying to create m2m triggers for generic relations. mmmmm.... indentation.....

git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-05 01:28:59 +00:00
parent 48507721aa
commit 20a30ff32c

View File

@ -275,6 +275,7 @@ def _get_many_to_many_sql_for_model(model):
style.SQL_FIELD(backend.quote_name(f.m2m_reverse_name()))))
table_output.append(');')
final_output.append('\n'.join(table_output))
# To simulate auto-incrementing primary keys in Oracle -- creating m2m tables
if (settings.DATABASE_ENGINE == 'oracle'):
m_table = f.m2m_db_table()