Skip to content

Commit d58726f

Browse files
authored
Update models.py
1 parent 98f894b commit d58726f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_raw_protocol(self):
6565
def location(self):
6666
if os.path.isfile(settings.GEOLITE2_CITY_FILE_LOCATION):
6767
reader = geoip2.database.Reader(settings.GEOLITE2_CITY_FILE_LOCATION)
68-
response = reader.city(domain)
68+
response = reader.city(self.domain)
6969

7070
return {
7171
'latitude': response.location.latitude,

0 commit comments

Comments
 (0)