Skip to content

Commit 09a7474

Browse files
committed
Merge branch 'pcraston-master' into develop
* pcraston-master: update changes Make compatible with latest Django Port compatibility fix for Django 1.5 Make compatible with Django 1.6
2 parents 78be201 + b84f90b commit 09a7474

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tracking/models.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@
33
import logging
44
import traceback
55

6-
try:
7-
# Django < 1.6
8-
from django.contrib.gis.utils import HAS_GEOIP
9-
if HAS_GEOIP:
10-
from django.contrib.gis.utils import GeoIP, GeoIPException
11-
except ImportError:
12-
# Django 1.6+
13-
from django.contrib.gis.geoip import HAS_GEOIP
14-
if HAS_GEOIP:
15-
from django.contrib.gis.geoip import GeoIP, GeoIPException
16-
6+
from django.contrib.gis.geoip import GeoIP, GeoIPException
177
try:
188
from django.conf import settings
199
User = settings.AUTH_USER_MODEL

0 commit comments

Comments
 (0)