summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-09-25 19:59:03 +0200
committerClaude Paroz <claude@2xlibre.net>2014-09-26 08:50:16 +0200
commitd1ca70110f49f0be90206c8da516ac16aebc8c75 (patch)
tree9aa9853a39d4e81ad4ae651df02d1d924bcd6f7a /django/db/backends/sqlite3
parenta8f07530a74839d20f1f2fb2cc7f5b8ef2215782 (diff)
Factorized schema_editor() at BaseDatabaseWrapper level
Diffstat (limited to 'django/db/backends/sqlite3')
-rw-r--r--django/db/backends/sqlite3/base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py
index 0e1070e6e5..349fae0253 100644
--- a/django/db/backends/sqlite3/base.py
+++ b/django/db/backends/sqlite3/base.py
@@ -351,6 +351,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
}
Database = Database
+ SchemaEditorClass = DatabaseSchemaEditor
def __init__(self, *args, **kwargs):
super(DatabaseWrapper, self).__init__(*args, **kwargs)
@@ -489,9 +490,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
"""
self.cursor().execute("BEGIN")
- def schema_editor(self, *args, **kwargs):
- "Returns a new instance of this backend's SchemaEditor"
- return DatabaseSchemaEditor(self, *args, **kwargs)
FORMAT_QMARK_REGEX = re.compile(r'(?<!%)%s')