Merge pull request #4004 from manqala/develop
Strip email ids in Contact before save
This commit is contained in:
commit
00ec6476ee
1 changed files with 1 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ class Contact(Document):
|
|||
break
|
||||
|
||||
def validate(self):
|
||||
self.email_id = self.email_id.strip()
|
||||
self.set_user()
|
||||
if self.email_id and not self.image:
|
||||
self.image = has_gravatar(self.email_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue