From f7b7963193d0ae5f165c29054f0b26dd0c4b9d89 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 5 Mar 2019 02:20:15 -0800 Subject: [PATCH] Remove unused version from footer I'm not seeing this value ever initialized in `settings`, or referenced anywhere else in platform, for that matter.. --- lms/djangoapps/dashboard/sysadmin.py | 5 ----- lms/templates/sysadmin_dashboard.html | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lms/djangoapps/dashboard/sysadmin.py b/lms/djangoapps/dashboard/sysadmin.py index abf1a466fb..db7d845b07 100644 --- a/lms/djangoapps/dashboard/sysadmin.py +++ b/lms/djangoapps/dashboard/sysadmin.py @@ -203,7 +203,6 @@ class Users(SysadminDashboardView): 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'users': 'active-section'}, - 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', ''), } return render_to_response(self.template_name, context) @@ -241,7 +240,6 @@ class Users(SysadminDashboardView): 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'users': 'active-section'}, - 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', ''), } return render_to_response(self.template_name, context) @@ -370,7 +368,6 @@ class Courses(SysadminDashboardView): 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'courses': 'active-section'}, - 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', ''), } return render_to_response(self.template_name, context) @@ -422,7 +419,6 @@ class Courses(SysadminDashboardView): 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'courses': 'active-section'}, - 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', ''), } return render_to_response(self.template_name, context) @@ -459,7 +455,6 @@ class Staffing(SysadminDashboardView): 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'staffing': 'active-section'}, - 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', ''), } return render_to_response(self.template_name, context) diff --git a/lms/templates/sysadmin_dashboard.html b/lms/templates/sysadmin_dashboard.html index 90d3a554e2..e48752a66e 100644 --- a/lms/templates/sysadmin_dashboard.html +++ b/lms/templates/sysadmin_dashboard.html @@ -216,7 +216,6 @@ textarea {
'Django PID': ${djangopid} - ## Translators: A version number appears after this string - | ${_('Platform Version')}: ${edx_platform_version}
+