We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f894b commit d58726fCopy full SHA for d58726f
models.py
@@ -65,7 +65,7 @@ def get_raw_protocol(self):
65
def location(self):
66
if os.path.isfile(settings.GEOLITE2_CITY_FILE_LOCATION):
67
reader = geoip2.database.Reader(settings.GEOLITE2_CITY_FILE_LOCATION)
68
- response = reader.city(domain)
+ response = reader.city(self.domain)
69
70
return {
71
'latitude': response.location.latitude,
0 commit comments