-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't workingsev3High severity - Production system impairedHigh severity - Production system impaired
Description
If a user was added to a section but have not logged into scheduler, mentors cannot change the attendance for the student, because of a validation error when saving the object in the database through the serializer.
In particular, the following Django log is printed:
<Attendance:Failure> Could not record attendance for User <pk=24;email=demo_user@berkeley.edu>, errors: {'student_name': [ErrorDetail(string='This field may not be blank.', code='blank')]}
Generally, this hasn't been an issue in the past, since student enroll themselves in sections, which requires them to have logged into scheduler. However, if a coordinator manually enrolls a student without having them login first, this creates a new user and student object without any associated name, causing this error when attempting to modify attendances.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsev3High severity - Production system impairedHigh severity - Production system impaired