Skip to content

Commit

Permalink
Fixed StudentModule conflicting path (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
musmanmalik committed Jun 9, 2020
1 parent a534ae7 commit afc966a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion poll/poll.py
Expand Up @@ -186,7 +186,10 @@ def download_url_for_last_report(self):
return dict(report_store.links_for(course_key)).get(self.last_export_result['report_filename'])

def student_module_queryset(self):
from lms.djangoapps.courseware.models import StudentModule # pylint: disable=import-error
try:
from lms.djangoapps.courseware.models import StudentModule # pylint: disable=import-error
except RuntimeError:
from courseware.models import StudentModule
return StudentModule.objects.select_related('student').filter(
course_id=self.runtime.course_id,
module_state_key=self.scope_ids.usage_id,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -46,7 +46,7 @@ def package_data(pkg, roots):

setup(
name='xblock-poll',
version='1.9.7',
version='1.9.8',
description='An XBlock for polling users.',
packages=[
'poll',
Expand Down

0 comments on commit afc966a

Please sign in to comment.