layup-list
layup-list copied to clipboard
Convert the professor field on Review from StringField to ForeignKey(Instructor)
Currently we have two sources for professors:
- Through the
professor
StringField
onReview
, populated by review writers. - Through
Instructor
, which has aManyToMany
relationship toCourseOffering
and is crawled through the timetable.
We would like to consolidate these two sources by changing professor
on Review
from StringField
to ForeignKey
. This will require a data migration.
This will consolidate the queries on the course_detail
and course_professors
views. ReviewForm
will have to be modified as well.