From d1ca70110f49f0be90206c8da516ac16aebc8c75 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 25 Sep 2014 19:59:03 +0200 Subject: Factorized schema_editor() at BaseDatabaseWrapper level --- django/db/backends/postgresql_psycopg2/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'django/db/backends/postgresql_psycopg2/base.py') 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] -- cgit v1.3