#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
-------------------------------------+-------------------------------------
Comment (by Ricardo Robles):
Replying to [comment:8 Jacob Walls]:
> 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.
Good afternoon,
Okay, I've just updated the documentation in both the diff and the PR to
include this information.
--
Ticket URL: <https://code.djangoproject.com/ticket/36872#comment:9>
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/0107019beb34bb48-40c3fd94-1230-460a-bf05-a6e64299b418-000000%40eu-central-1.amazonses.com.