Skip to content

Commit

Permalink
bool bugfix in association
Browse files Browse the repository at this point in the history
  • Loading branch information
joshualiao committed Nov 7, 2023
1 parent 83193b9 commit 83ba04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csm_web/scheduler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def can_enroll_in_course(self, course, bypass_enrollment_time=False):
is_associated = (
self.student_set.filter(active=True, section__mentor__course=course).count()
or self.mentor_set.filter(section__mentor__course=course).count()
or self.id not in course.coordinator_set.values_list("user", flat=True)
or self.id in course.coordinator_set.values_list("user", flat=True)
)
if bypass_enrollment_time:
return not is_associated
Expand Down

0 comments on commit 83ba04d

Please sign in to comment.