summaryrefslogtreecommitdiffstats
path: root/askbot/models/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/models/__init__.py')
-rw-r--r--askbot/models/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py
index 17723ce5..e1677d9f 100644
--- a/askbot/models/__init__.py
+++ b/askbot/models/__init__.py
@@ -1452,12 +1452,13 @@ def user_add_missing_askbot_subscriptions(self):
'feed_type', flat = True
)
missing_feed_types = set(need_feed_types) - set(have_feed_types)
- frequency = askbot_settings.DEFAULT_NOTIFICATION_DELIVERY_SCHEDULE
for missing_feed_type in missing_feed_types:
+ attr_key = 'DEFAULT_NOTIFICATION_DELIVERY_SCHEDULE_%s' % missing_feed_type.upper()
+ freq = getattr(askbot_settings, attr_key)
feed_setting = EmailFeedSetting(
subscriber = self,
feed_type = missing_feed_type,
- frequency = frequency
+ frequency = freq
)
feed_setting.save()