Commit 11ea1383 authored by Michal Čihař's avatar Michal Čihař

Simplify initial setup

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 3ef1d724
...@@ -183,10 +183,8 @@ def send_notification_email(language, email, notification, ...@@ -183,10 +183,8 @@ def send_notification_email(language, email, notification,
Renders and sends notification email. Renders and sends notification email.
''' '''
cur_language = django_translation.get_language() cur_language = django_translation.get_language()
if context is None: context = context or {}
context = {} headers = headers or {}
if headers is None:
headers = {}
try: try:
if info is None: if info is None:
info = translation_obj.__unicode__() info = translation_obj.__unicode__()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment