From e1124b7aa79a2025ddbbbdb2e3337234fa6f536f Mon Sep 17 00:00:00 2001 From: Andres Espinel Date: Wed, 10 Jan 2024 01:20:36 -0500 Subject: [PATCH] chore: added comment to new state column and added reference to static jquery. --- openedx/features/survey_report/admin.py | 4 ++++ .../survey_report/templates/survey_report/admin_banner.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openedx/features/survey_report/admin.py b/openedx/features/survey_report/admin.py index c2e6232c44af..917a6e437f2e 100644 --- a/openedx/features/survey_report/admin.py +++ b/openedx/features/survey_report/admin.py @@ -81,6 +81,10 @@ def get_actions(self, request): return actions def report_state(self, obj): + """ + Method to define the custom State column with the new "send" state, + to avoid modifying the current models. + """ if obj.surveyreportupload_set.last().is_uploaded(): return "Sent" return obj.state.capitalize() diff --git a/openedx/features/survey_report/templates/survey_report/admin_banner.html b/openedx/features/survey_report/templates/survey_report/admin_banner.html index 1ef3803982f7..e881966f146f 100644 --- a/openedx/features/survey_report/templates/survey_report/admin_banner.html +++ b/openedx/features/survey_report/templates/survey_report/admin_banner.html @@ -1,5 +1,6 @@ {% block survey_report_banner %} {% if show_survey_report_banner %} +{% load static %}

Join the Open edX Data Sharing Initiative and shape the future of learning

@@ -31,7 +32,7 @@

Join the Open edX Data Sh {% endif %} - +