#27770: {% include %} with the template instance is broken under django 1.11
----------------------------------------------+------------------------
               Reporter:  Mikhail Podgurskiy  |          Owner:  nobody
                   Type:  Uncategorized       |         Status:  new
              Component:  Uncategorized       |        Version:  1.11
               Severity:  Normal              |       Keywords:
           Triage Stage:  Unreviewed          |      Has patch:  0
    Needs documentation:  0                   |    Needs tests:  0
Patch needs improvement:  0                   |  Easy pickings:  0
                  UI/UX:  0                   |
----------------------------------------------+------------------------
 As stated in the django docs, the {% include %} tag could accept a
 template instance to render -
 https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#include


 {{{
 include

 Loads a template and renders it with the current context. This is a way of
 “including” other templates within a template.

 The variable may also be any object with a render() method that accepts a
 context. This allows you to reference a compiled Template in your context.
 }}}

 This leads to `RequestContext` from the main template been passed to the
 included `template.render` method  and this became prohibited within
 https://code.djangoproject.com/ticket/27258 changeset

 {{{
 TypeError at ...
 context must be a dict rather than RequestContext.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27770>
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/050.2aac50eba0b126a9f38a19371eb0a1f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to