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