INCR-377 python 3 compatibility

This commit is contained in:
Ayub khan
2019-07-10 15:10:05 +05:00
parent 92c7a43011
commit 91a3c91fd2

View File

@@ -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))