diff --git a/base_geoengine/fields.py b/base_geoengine/fields.py index e06787335b..6627e63066 100644 --- a/base_geoengine/fields.py +++ b/base_geoengine/fields.py @@ -103,7 +103,7 @@ def from_latlon(cls, cr, latitude, longitude): ST_GeomFromText(%(wkt)s, 4326), %(srid)s) """, {'wkt': pt.wkt, - 'srid': cls.srid}) + 'srid': cls._slots['srid']}) res = cr.fetchone() return cls.load_geo(res[0])