1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

06 change comment

This commit is contained in:
Michael An
2024-11-19 17:39:12 +08:00
parent c9fc135bbc
commit 14800df3fd

View File

@@ -91,7 +91,7 @@ class ProfileManager(models.Manager):
return None return None
def get_contact_email_by_user(self, username): def get_contact_email_by_user(self, username):
"""Get a user's contact email, use username(login email) if not found. """Get a user's contact email, return None if not found.
""" """
p = self.get_profile_by_user(username) p = self.get_profile_by_user(username)
if p and p.contact_email: if p and p.contact_email: