mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
This commit is contained in:
parent
890537253c
commit
2dc3280254
18 changed files with 118 additions and 182 deletions
|
@ -4,12 +4,11 @@ from copy import copy
|
|||
from decimal import Decimal
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.gis.gdal import HAS_GDAL
|
||||
from django.contrib.gis.geos import HAS_GEOS
|
||||
from django.db import connection
|
||||
from django.test import TestCase, override_settings
|
||||
|
||||
if HAS_GEOS and HAS_GDAL:
|
||||
if HAS_GEOS:
|
||||
from django.contrib.gis.utils.layermapping import (
|
||||
LayerMapping, LayerMapError, InvalidDecimal, InvalidString,
|
||||
MissingForeignKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue