include with "only" option discards context properties (such as autoescape)
|Reported by:||dfoerster||Owned by:||nobody|
|Severity:||Keywords:||include, autoescape, blocker|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
When including template files with the "only" option set, context properties such as autoescape are discarded.
Expected behaviour: The properties of the context object should be retained. (This is already the case when not using the "only" option.)
I attached a patch that fixes this problem (I'm not sure if the current_app property also needs to be copied).
Change History (11)
comment:1 Changed 6 years ago by
|Triage Stage:||Unreviewed → Accepted|