remove mail->country check, too esoteric

This commit is contained in:
rolux 2012-03-27 16:17:50 +00:00
parent 879d114995
commit b515feb456

View file

@ -75,13 +75,6 @@ class SessionData(models.Model):
except:
self.location_sort = self.location = None
pass
if self.location == None and self.user and self.user.email:
tld = self.user.email.split('.')[-1]
if tld in ['edu', 'gov', 'mil']:
tld = 'us'
country = ox.get_country_name(tld)
if country:
self.location_sort = self.location = country
def save(self, *args, **kwargs):
if self.user: