#27722: if a template context is an instance of get_template(), it will raise
"TypeError: context must be a dict rather than RequestContext"
---------------------------------+--------------------------------------
Reporter: Sayid Munawar | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: master
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Tim Graham):
* cc: FunkyBob (added)
Comment:
Curtis, as the author of 5cdacbda034af928f5033c9afc7b50ee0b13f75c, I
wonder if you have any input here? I'm not happy that I broke backwards
compatibility (due to #27258) with such a cryptic error message here. At
least the `{% include %}` docs that say, "The variable may also be any
object with a `render()` method that accepts a context." might need some
clarification.
The use case is described in the [https://github.com/viewflow/django-
material/issues/222 django-material issue].
--
Ticket URL: <https://code.djangoproject.com/ticket/27722#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.0cfe97892d3c2d05b55dfd65cf3c63d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.