Opened 10 years ago
Last modified 8 years ago
#24577 new Bug
Restrict extending and including to require templates from the same engine.
Reported by: | Preston Timmons | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | desecho@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If two Django engines are configured and a template object from the first engine is used as an include or extends in a template from the second engine, it's not clear which engine will be used if the template object also happens to include or extend other templates.
Per discussion with Aymeric, it sounds like the least ambiguous behavior it to raise an exception if an included or extended template has a different engine than that of the current template.
This affects the IncludeNode, ExtendsNode, and InclusionNode.
Attachments (1)
Change History (4)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 8 years ago
Cc: | added |
---|
by , 8 years ago
Attachment: | 24577.diff added |
---|
I can't reproduce this issue. Can you offer a sample project?