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,
Renders and sends notification email.
'''
cur_language = django_translation.get_language()
if context is None:
context = {}
if headers is None:
headers = {}
context = context or {}
headers = headers or {}
try:
if info is None:
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