diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-09-25 19:59:03 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-09-26 08:50:16 +0200 |
| commit | d1ca70110f49f0be90206c8da516ac16aebc8c75 (patch) | |
| tree | 9aa9853a39d4e81ad4ae651df02d1d924bcd6f7a /django/db/backends/postgresql_psycopg2/base.py | |
| parent | a8f07530a74839d20f1f2fb2cc7f5b8ef2215782 (diff) | |
Factorized schema_editor() at BaseDatabaseWrapper level
Diffstat (limited to 'django/db/backends/postgresql_psycopg2/base.py')
| -rw-r--r-- | django/db/backends/postgresql_psycopg2/base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index 975eee4df2..7de52d7592 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -91,6 +91,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): } Database = Database + SchemaEditorClass = DatabaseSchemaEditor def __init__(self, *args, **kwargs): super(DatabaseWrapper, self).__init__(*args, **kwargs) @@ -198,10 +199,6 @@ class DatabaseWrapper(BaseDatabaseWrapper): else: return True - def schema_editor(self, *args, **kwargs): - "Returns a new instance of this backend's SchemaEditor" - return DatabaseSchemaEditor(self, *args, **kwargs) - @cached_property def psycopg2_version(self): version = psycopg2.__version__.split(' ', 1)[0] |
