def __init__(self, *args, **kwargs): super(DatabaseWrapper, self).__init__(*args, **kwargs) self.creation = MySQLCreation(self) try: self.ops = DatabaseOperations() except TypeError: self.ops = DatabaseOperations(connection=kwargs.get('connection')) self.introspection = MySQLIntrospection(self)
def __init__(self, *args, **kwargs): super(DatabaseWrapper, self).__init__(*args, **kwargs) self.creation = MySQLCreation(self) self.ops = DatabaseOperations() self.introspection = MySQLIntrospection(self)