You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template render function requires context to be dict in django 1.11
Traceback:
File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in send
82. message = self.render_to_message(extra_context=extra_context, **kwargs)
File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_to_message
60. subject=self.render_subject(context),
File "//venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_subject
161. rendered = self.subject_template.render(unescape(context))
File "/venv/local/lib/python2.7/site-packages/django/template/backends/django.py" in render
64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)
File "/venv/local/lib/python2.7/site-packages/django/template/context.py" in make_context
287. raise TypeError('context must be a dict rather than %s.' % context.class.name)
Exception Type: TypeError at /accounts/request/demo/
Exception Value: context must be a dict rather than Context.
The text was updated successfully, but these errors were encountered:
template render function requires context to be dict in django 1.11
Traceback:
File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in send
82. message = self.render_to_message(extra_context=extra_context, **kwargs)
File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_to_message
60. subject=self.render_subject(context),
File "//venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_subject
161. rendered = self.subject_template.render(unescape(context))
File "/venv/local/lib/python2.7/site-packages/django/template/backends/django.py" in render
64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)
File "/venv/local/lib/python2.7/site-packages/django/template/context.py" in make_context
287. raise TypeError('context must be a dict rather than %s.' % context.class.name)
Exception Type: TypeError at /accounts/request/demo/
Exception Value: context must be a dict rather than Context.
The text was updated successfully, but these errors were encountered: