db.backends.base.schema.SchemaEditor.connection

SchemaEditor.connection

A connection object to the database. A useful attribute of the connection is alias which can be used to determine the name of the database being accessed.

This is useful when doing data migrations for migrations with multiple databases.

doc_Django
2016-10-09 18:35:08
Comments
Leave a Comment

Please login to continue.