Permalink
Browse files

Use the backend enumerated number over the label.

  • Loading branch information...
1 parent ba8de99 commit e99cda12b6ab66d0557cc64915f61105823b7e38 @brosner brosner committed Apr 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 notification/models.py
View
@@ -55,7 +55,7 @@ class Meta:
for i, items in enumerate(NOTIFICATION_BACKENDS.items()):
backend_label, backend = items
NOTICE_MEDIA.append((i, backend_label))
- NOTICE_MEDIA_DEFAULTS[backend_label] = backend.spam_sensitivity
+ NOTICE_MEDIA_DEFAULTS[i] = backend.spam_sensitivity
class NoticeSetting(models.Model):
"""

0 comments on commit e99cda1

Please sign in to comment.