summaryrefslogtreecommitdiffstats
path: root/askbot/conf/site_modes.py
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2011-10-04 15:16:02 -0300
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2011-10-04 15:16:02 -0300
commite8604ae446e1fc2b2add854916b6885574c70836 (patch)
treeb900ea89e142fe0fbef66200e938db5d03a862e1 /askbot/conf/site_modes.py
parent84e75d33a89b34b666abc52dfc1e51f16f82e082 (diff)
downloadaskbot-e8604ae446e1fc2b2add854916b6885574c70836.tar.gz
askbot-e8604ae446e1fc2b2add854916b6885574c70836.tar.bz2
askbot-e8604ae446e1fc2b2add854916b6885574c70836.zip
do not overwrite settings in case that the value havent changed
Diffstat (limited to 'askbot/conf/site_modes.py')
-rw-r--r--askbot/conf/site_modes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/askbot/conf/site_modes.py b/askbot/conf/site_modes.py
index 73487cd8..45aaec90 100644
--- a/askbot/conf/site_modes.py
+++ b/askbot/conf/site_modes.py
@@ -12,6 +12,11 @@ from askbot.conf import badges, minimum_reputation
def bootstrap_callback(current_value, new_value):
'''Callback to update settings'''
+ if current_value == new_value:
+ #do not overwrite settings in case that tha value
+ #is the same
+ return new_value
+
if new_value == True:
#minimum reputation settgins.
settings.update('MIN_REP_TO_VOTE_UP', 5)