def fill_osm_data(self): response = osm_geocoder(self.geoaddress()) if response is not None: self.longitude = response['lon'] self.latitude = response['lat']