def user_city(context): ip = get_ip(context['request']) return get_city(ip)
def city(self): """ Return city name using Telize or Geoip.""" return get_city(self.ip)