django1/django/contrib/gis/db/backends/spatialite/adapter.py

10 lines
317 B
Python
Raw Normal View History

from django.contrib.gis.db.backends.base.adapter import WKTAdapter
from django.db.backends.sqlite3.base import Database
2013-11-03 01:18:46 +08:00
class SpatiaLiteAdapter(WKTAdapter):
"SQLite adaptor for geometry objects."
def __conform__(self, protocol):
if protocol is Database.PrepareProtocol:
return str(self)