Skip to content

Commit afc966a

Browse files
authored
Fixed StudentModule conflicting path (#78)
1 parent a534ae7 commit afc966a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

poll/poll.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ def download_url_for_last_report(self):
186186
return dict(report_store.links_for(course_key)).get(self.last_export_result['report_filename'])
187187

188188
def student_module_queryset(self):
189-
from lms.djangoapps.courseware.models import StudentModule # pylint: disable=import-error
189+
try:
190+
from lms.djangoapps.courseware.models import StudentModule # pylint: disable=import-error
191+
except RuntimeError:
192+
from courseware.models import StudentModule
190193
return StudentModule.objects.select_related('student').filter(
191194
course_id=self.runtime.course_id,
192195
module_state_key=self.scope_ids.usage_id,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def package_data(pkg, roots):
4646

4747
setup(
4848
name='xblock-poll',
49-
version='1.9.7',
49+
version='1.9.8',
5050
description='An XBlock for polling users.',
5151
packages=[
5252
'poll',

0 commit comments

Comments
 (0)