#36817: Possible regression of Engine.get_template
-------------------------------------+-------------------------------------
     Reporter:  Henrik Ossipoff      |                    Owner:  (none)
  Hansen                             |
         Type:  Bug                  |                   Status:  new
    Component:  Template system      |                  Version:  6.0
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * cc: Carlton Gibson (added)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted

Comment:

 Yes… OK. The DTL loader always expected strings, but they're always meant
 to be paths, so Path objects seem a reasonable thing to allow.

 Checking if `template_name` is a `Path` and converting back to a string in
 `get_template()` should be acceptable.

 Want to make a PR Henrik?
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36817#comment:2>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b45818857-c16ea191-f3ae-4179-bc07-55bf1dd91eef-000000%40eu-central-1.amazonses.com.

Reply via email to