base.py 602 B

123456789101112
  1. from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
  2. from django.contrib.gis.db.backends.mysql.creation import MySQLCreation
  3. from django.contrib.gis.db.backends.mysql.introspection import MySQLIntrospection
  4. from django.contrib.gis.db.backends.mysql.operations import MySQLOperations
  5. class DatabaseWrapper(MySQLDatabaseWrapper):
  6. def __init__(self, *args, **kwargs):
  7. super(DatabaseWrapper, self).__init__(*args, **kwargs)
  8. self.creation = MySQLCreation(self)
  9. self.ops = MySQLOperations(self)
  10. self.introspection = MySQLIntrospection(self)