fromdjango.db.backends.sqlite3.baseimport Database
fromdjango.contrib.gis.db.backends.adapterimport WKTAdapter
class SpatiaLiteAdapter(WKTAdapter):
"SQLite adaptor for geometry objects."
def __conform__(self, protocol):
if protocol is Database.PrepareProtocol:
return str(self)