diff --git a/community/community/doctype/community_member/community_member.py b/community/community/doctype/community_member/community_member.py index f3fd9541..49bfa49a 100644 --- a/community/community/doctype/community_member/community_member.py +++ b/community/community/doctype/community_member/community_member.py @@ -25,9 +25,7 @@ class CommunityMember(WebsiteGenerator): if not re.match("^[A-Za-z0-9_]*$", self.user_name): frappe.throw(_("Username can only contain alphabets, numbers and underscore.")) self.user_name = self.user_name.lower() - - def autoname(self): - self.name = self.user_name + def create_member_from_user(doc, method): member = frappe.get_doc({