Skip to content

Commit c86893c

Browse files
author
Martin Pauly
committed
Move import into function to avoid GDAL as a global dependency
1 parent 4136ad7 commit c86893c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import re
55
from inspect import ismethod
66

7-
from django.contrib.gis.geos import Point
87
from django.template import loader
98
from django.utils import datetime_safe, six
109

@@ -260,6 +259,7 @@ def prepare(self, obj):
260259
return "%s,%s" % (pnt_lat, pnt_lng)
261260

262261
def convert(self, value):
262+
from django.contrib.gis.geos import Point
263263
from haystack.utils.geo import ensure_point
264264

265265
if value is None:

0 commit comments

Comments
 (0)