Fixed CourseFactories
Merge pull request #3000 from edx/flowerhack/opaque-keys

Fixed CourseFactories