1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Factorized schema_editor() at BaseDatabaseWrapper level

This commit is contained in:
Claude Paroz
2014-09-25 19:59:03 +02:00
parent a8f07530a7
commit d1ca70110f
9 changed files with 20 additions and 32 deletions

View File

@@ -15,12 +15,11 @@ class DatabaseFeatures(BaseSpatialFeatures, OracleDatabaseFeatures):
class DatabaseWrapper(OracleDatabaseWrapper):
SchemaEditorClass = OracleGISSchemaEditor
def __init__(self, *args, **kwargs):
super(DatabaseWrapper, self).__init__(*args, **kwargs)
self.features = DatabaseFeatures(self)
self.ops = OracleOperations(self)
self.creation = OracleCreation(self)
self.introspection = OracleIntrospection(self)
def schema_editor(self, *args, **kwargs):
return OracleGISSchemaEditor(self, *args, **kwargs)