]> git.openstreetmap.org Git - osqa.git/commitdiff
Gravatar avatars are shown even if the emails left is lowercased, uppercased or rando...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 22 Dec 2010 22:24:14 +0000 (22:24 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 22 Dec 2010 22:24:14 +0000 (22:24 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@623 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/user.py

index e50c1f0843e8c50ddd2da692f49f9181e328740e..8a80f03c3c167e586b660a73c603d1460ef0f409 100644 (file)
@@ -163,8 +163,8 @@ class User(BaseModel, DjangoUser):
 
     @property
     def gravatar(self):
-        return md5(self.email).hexdigest()
-
+        return md5(self.email.lower()).hexdigest()
+    
     def save(self, *args, **kwargs):
         if self.reputation < 0:
             self.reputation = 0