#36872: Django's template engine cannot handle asynchronous methods
-------------------------------------+-------------------------------------
     Reporter:  Ricardo Robles       |                    Owner:  Ricardo
                                     |  Robles
         Type:  New feature          |                   Status:  assigned
    Component:  Template system      |                  Version:  6.0
     Severity:  Normal               |               Resolution:
     Keywords:  Template, Async      |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

 * needs_docs:  0 => 1
 * type:  Bug => New feature

Comment:

 I think this will need a sliver of documentation. For instance where we
 say:

 > If the resulting value is callable, it is called with no arguments.

 We could augment it with:

 > If the resulting value is a coroutine, it is awaited via
 `async_to_sync()`.

 or similar.

 Although this is sort of a bug since elsewhere the docs say "variables are
 evaluated", I think we should let folks know we added this with a release
 note and versionchanged annotation.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36872#comment:8>
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/0107019beaffa06e-f986733c-9c1a-4827-82b0-d64ba21cb4fc-000000%40eu-central-1.amazonses.com.

Reply via email to