diff --git a/orchestra/utils/mail.py b/orchestra/utils/mail.py index caa4589e..25b256bf 100644 --- a/orchestra/utils/mail.py +++ b/orchestra/utils/mail.py @@ -10,12 +10,9 @@ def render_email_template(template, context): Renders an email template with this format: {% if subject %}Subject{% endif %} {% if message %}Email body{% endif %} - - context can be a dictionary or a template.Context instance + + context must be a dict """ - if isinstance(context, dict): - context = Context(context) - if not 'site' in context: from orchestra import settings url = urlparse(settings.ORCHESTRA_SITE_URL)