[fix] contact.py
This commit is contained in:
parent
6a42fa0f56
commit
91d8adc1b0
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ class Contact(Document):
|
|||
break
|
||||
|
||||
def validate(self):
|
||||
self.email_id = self.email_id.strip()
|
||||
if self.email_id:
|
||||
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