Skip to content

Commit

Permalink
Merge pull request #134 from svfat/master
Browse files Browse the repository at this point in the history
Use dict.get() method to determine if GEODJANGO_INSTALLED is True
  • Loading branch information
nemesifier committed Nov 9, 2015
2 parents b69d559 + 614d32f commit f079e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_hstore/apps.py
Expand Up @@ -22,7 +22,7 @@
GEODJANGO_INSTALLED = False

for database in settings.DATABASES.values():
if 'postgis' in database['ENGINE']:
if 'postgis' in database.get('ENGINE'):
GEODJANGO_INSTALLED = True
break

Expand Down

0 comments on commit f079e56

Please sign in to comment.