INCR-377 python 3 compatibility
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
"""
|
||||
Signal handler for posting course updated to CCXCon
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
import six
|
||||
from django.dispatch.dispatcher import receiver
|
||||
|
||||
from xmodule.modulestore.django import SignalHandler
|
||||
@@ -15,4 +18,4 @@ def _listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable
|
||||
# update the course information on ccxcon using celery
|
||||
# import here, because signal is registered at startup, but items in tasks are not yet able to be loaded
|
||||
from openedx.core.djangoapps.ccxcon import tasks
|
||||
tasks.update_ccxcon.delay(unicode(course_key))
|
||||
tasks.update_ccxcon.delay(six.text_type(course_key))
|
||||
|
||||
Reference in New Issue
Block a user