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...
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.
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.