def country_code(self): geotags = self.original_data.get("coordinates") if geotags: coords = geotags.get("coordinates") if coords: country = Geo.get_country(coords) if country: return "C" + country return None