Skip to content

Commit

Permalink
Merge pull request #5592 from benjaoming/gis-fix
Browse files Browse the repository at this point in the history
Always raise an error when importing from django.contrib.gis
  • Loading branch information
benjaoming authored Mar 7, 2019
2 parents d5a3462 + 56bee65 commit 703b862
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/installguide/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ to read the release notes.
upgrading from ``0.16.x`` to ``0.17.x`` is fine - but upgrading from
``0.15.x`` to ``0.17.x`` is not guaranteed to work.

0.17.6.dev
----------

Bug fixes
^^^^^^^^^

* Fix rare ``GEOSException`` on systems with libgeos :url-issue:`5592`

0.17.5
------
Expand Down
6 changes: 6 additions & 0 deletions kalite/packages/bundled/django/contrib/gis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
memoryview = memoryview
else:
memoryview = buffer


# Disable all this stuff because we do not want unnecessary imports of system
# libraries that may break needlessly
# Ref: https://github.com/iiab/iiab/issues/1382
raise ImportError("Harmless: We do not support gis")

0 comments on commit 703b862

Please sign in to comment.