1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

Add bulk geocoding command and trigger geocoding action in admin

This commit is contained in:
Sean Morley 2025-05-22 20:29:05 -04:00
parent ac32f9ac5b
commit 84cd136401
3 changed files with 40 additions and 1 deletions

View file

@ -579,7 +579,6 @@ class Adventure(models.Model):
if self.latitude and self.longitude:
reverse_geocode_result = reverse_geocode(self.latitude, self.longitude, self.user_id)
print(reverse_geocode_result)
if 'region_id' in reverse_geocode_result:
region = Region.objects.filter(id=reverse_geocode_result['region_id']).first()
if region: