mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed sequence naming bug. 93 of 100 tests pass now.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -213,7 +213,7 @@ def _get_sql_model_create(model, known_models=set()):
|
||||
full_statement.append(');')
|
||||
final_output.append('\n'.join(full_statement))
|
||||
|
||||
if opts.has_auto_field:
|
||||
if opts.has_auto_field and hasattr(backend, 'get_autoinc_sql'):
|
||||
# Add any extra SQL needed to support auto-incrementing primary keys
|
||||
autoinc_sql = backend.get_autoinc_sql(opts.db_table)
|
||||
if autoinc_sql:
|
||||
|
||||
Reference in New Issue
Block a user