diff --git a/course/page/code.py b/course/page/code.py index e1b923cd0e51224d31e5379b6b07dd52d1881354..409ff6ab7eac61b5eb1edaf85f000786e15d83b8 100644 --- a/course/page/code.py +++ b/course/page/code.py @@ -652,23 +652,6 @@ class PythonCodeQuestion(PageBaseWithTitle, PageBaseWithValue): error_msg = "\n".join(error_msg_parts) - review_url = "" - if not page_context.in_sandbox: - - from django.core.urlresolvers import reverse - review_url = reverse( - "relate-view_flow_page", - kwargs={ - 'course_identifier': page_context.course.identifier, - 'flow_session_id': page_context.flow_session.id, - 'ordinal': 0, # page_context.ordinal - } - ) - - from six.moves.urllib.parse import urljoin - review_uri = urljoin(getattr(settings, "RELATE_BASE_URL"), - review_url) - from relate.utils import local_now, format_datetime_local with translation.override(settings.RELATE_ADMIN_EMAIL_LOCALE): from django.template.loader import render_to_string @@ -677,7 +660,7 @@ class PythonCodeQuestion(PageBaseWithTitle, PageBaseWithValue): "page_id": self.page_desc.id, "course": page_context.course, "error_message": error_msg, - "review_uri": review_uri, + "review_uri": page_context.page_uri, "time": format_datetime_local(local_now()) })