Commit a64e1d49 authored by Bruno Martin's avatar Bruno Martin
Browse files

fix profile filled check

parent 652092b7
......@@ -379,9 +379,8 @@ class User(AbstractUser):
def is_profile_filled(self):
from timtec.settings import ACCOUNT_REQUIRED_FIELDS as fields
for field in fields:
for field in settings.ACCOUNT_REQUIRED_FIELDS:
f = getattr(self, field)
if not f:
......@@ -392,4 +391,4 @@ class User(AbstractUser):
def get_certificates(self):
from core.models import CourseCertification
return CourseCertification.objects.filter(course_student__user=self)
\ No newline at end of file
return CourseCertification.objects.filter(course_student__user=self)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment