Commit 00e29be8 by asadazam93 Committed by AsadAzam

Fixed publish button to delete subjects

parent 269ca555
......@@ -129,6 +129,7 @@ class CourseRunViewSet(viewsets.GenericViewSet):
publisher_course.tertiary_subject
] if subject]
subjects = list(OrderedDict.fromkeys(subjects))
discovery_course.subjects.clear()
discovery_course.subjects.add(*subjects)
defaults = {
......
Markdown is supported
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