def user_country(context): ip = get_ip(context['request']) return get_country(ip)
def country(self): """ Returns country name using Telize or GeoIP """ return get_country(self.ip)