From b55b34129b14d0cf9ecac30cfd6217c65d759d82 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 27 Oct 2015 20:35:58 +0100 Subject: [PATCH] Moved around imports in PostGIS operations Thanks Daniel Wiesmann for inspiration. --- django/contrib/gis/db/backends/postgis/operations.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/django/contrib/gis/db/backends/postgis/operations.py b/django/contrib/gis/db/backends/postgis/operations.py index 3830b3f0db..ed9d5b10fb 100644 --- a/django/contrib/gis/db/backends/postgis/operations.py +++ b/django/contrib/gis/db/backends/postgis/operations.py @@ -3,10 +3,6 @@ import re from django.conf import settings from django.contrib.gis.db.backends.base.operations import \ BaseSpatialOperations -from django.contrib.gis.db.backends.postgis.adapter import PostGISAdapter -from django.contrib.gis.db.backends.postgis.pgraster import ( - from_pgraster, to_pgraster, -) from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.geometry.backend import Geometry from django.contrib.gis.measure import Distance @@ -15,8 +11,9 @@ from django.db.backends.postgresql.operations import DatabaseOperations from django.db.utils import ProgrammingError from django.utils.functional import cached_property +from .adapter import PostGISAdapter from .models import PostGISGeometryColumns, PostGISSpatialRefSys -from .pgraster import get_pgraster_srid +from .pgraster import from_pgraster, get_pgraster_srid, to_pgraster class PostGISOperator(SpatialOperator):