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 %}