adilmohak / django-lms

A learning management system using django web framework. Course add and drop, grade and assessment result management, online quiz, report generator, student and lecturers management, dashboard, and so much more...
MIT License
584 stars 251 forks source link

fixing dashbord page error #38

Closed y938 closed 7 months ago

y938 commented 7 months ago

Originally, the code attempted to call the get_student_count() method on the CustomUserManager object using User.object.get_student_count(). However, this resulted in an AttributeError due to the absence of the get_student_count() method in the CustomUserManager class.

To resolve this issue, I removed the .object reference and directly called the get_student_count() method using User.get_student_count(), which successfully retrieved the desired attribute.

adilmohak commented 7 months ago

Hi, Thank you for your contribution, I really appreciate it. Kindly check for the latest changes and simply let us know if the error persists.

y938 commented 7 months ago

You're welcome! it works 👍