Skip to content

Commit

Permalink
Fallback to default LANGUAGE_CODE if NOTIFICATION_LANGUAGE_MODULE not…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
Bjunix committed Dec 14, 2009
1 parent 3f023ad commit da1a81f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notification/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def get_notification_language(user):
return language_model.language
except (ImportError, ImproperlyConfigured, model.DoesNotExist):
raise LanguageStoreNotAvailable
raise LanguageStoreNotAvailable
else:
return getattr(settings, 'LANGUAGE_CODE')

def get_formatted_messages(formats, label, context):
"""
Expand Down

0 comments on commit da1a81f

Please sign in to comment.