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