get profile url jinja function issue

This commit is contained in:
Jannat Patel
2021-12-03 16:29:29 +05:30
parent a78019ccbc
commit 740c0d10ca
6 changed files with 12 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import hashlib
import random
import re
from frappe import _
from school.page_renderers import get_profile_url
class CustomUser(User):
@@ -144,3 +145,6 @@ class CustomUser(User):
"in_progress": in_progress,
"completed": completed
}
def get_profile_url(self):
return get_profile_url()