website_geoip_extended: fix city tracking on visitor
This commit is contained in:
parent
5155624844
commit
d6a0bfd1b9
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class WebsiteVisitor(models.Model):
|
||||||
|
|
||||||
# Mise à jour du visiteur avec les nouvelles données
|
# Mise à jour du visiteur avec les nouvelles données
|
||||||
update_values = {
|
update_values = {
|
||||||
'city': geoip_info.city.names.en,
|
'city': geoip_info.city.name,
|
||||||
'postal_code': geoip_info.postal.code,
|
'postal_code': geoip_info.postal.code,
|
||||||
'latitude': geoip_info.location.latitude,
|
'latitude': geoip_info.location.latitude,
|
||||||
'longitude': geoip_info.location.longitude,
|
'longitude': geoip_info.location.longitude,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue