From faf0782d606057afed42ed747500b60372a685a6 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 30 Apr 2012 14:37:39 -0400 Subject: [PATCH] If rerandomize won't show different values, don't show the reset button --- djangoapps/courseware/modules/capa_module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/djangoapps/courseware/modules/capa_module.py b/djangoapps/courseware/modules/capa_module.py index 86958dcf1c..3528e5d188 100644 --- a/djangoapps/courseware/modules/capa_module.py +++ b/djangoapps/courseware/modules/capa_module.py @@ -96,6 +96,10 @@ class Module(XModule): check_button = False save_button = False + # Only show the reset button if pressing it will show different values + if self.rerandomize != 'always': + reset_button = False + # User hasn't submitted an answer yet -- we don't want resets if not self.lcp.done: reset_button = False