Template instances should have an origin attribute.
|Reported by:||Jeremy Dunck||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Templates are constructed with an optional origin argument; this is used for debugging purposes.
But I think it would be useful for the Template instance to have an origin attribute -- then template origins could be more easily inspected and logged outside the django.template infrastructure. The specific use case I have in mind is making it clearer to FE devs which templates/template dirs are being used for a given request.
Template's constructor receives an origin parameter, so this should be a simple change.