models.py
89.5 KB
-
Find the courses a user has certs for up front. · 47e606b3
Before this commit, we had to do a separate query for every course a user was enrolled in when determining whether a course was refundable (if you have a certificate, it isn't). Now the student dashboard will make a one-time query to grab all of a user's cert-issued courses. This is indexed, so it should be much faster than grabbing each one separately.
David Ormsbee committed