Skip to content
Snippets Groups Projects
Commit 7c115cca authored by Feanil Patel's avatar Feanil Patel
Browse files

Remove the course_id property on student.CourseEnrollment.

It conflicts with an underlying related field on that model which seems
to be getting at the same value from the related table.

Add logging for incorrectly instantiating CourseEnrollment models.
This is to catch any places that might break this that are outside of
edx-platform. Django won't accept `course` values that aren't
course_overviews so we don't need extra logic to test that `course`
values are of the correct type.

fixup! Remove the course_id property on student.CourseEnrollment.
parent c94beec1
Branches
Tags release-2020-03-17-04.34
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment