0.24.1: new _is_gis_field
check throws exceptions when GDAL library not installed
#821
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
After upgrading from drf-spectacular 0.24.0 to 0.24.1, with django 3.2 and django-filter 21.1, our users are reporting extremely slow schema generation and hundreds of new drf-spectacular warnings along the lines of:
I believe the culprit is the new
_is_gis
check added in 348a06e:In my environment, the above import does not raise an
ImportError
but instead raises a DjangoImproperlyConfigured
error:To Reproduce
django==3.2.15
python -c "from django.contrib.gis.db.models import GeometryField"
Expected behavior
Lack of GIS support should not impact schema generation performance or functionality of non-GIS schema.
The text was updated successfully, but these errors were encountered: