#28618: Add an easier way to make templates substitutions raise an exception on
error
-------------------------------------+-------------------------------------
Reporter: Facundo Batista | Owner: Ahmed
| Nassar
Type: New feature | Status: assigned
Component: Template system | Version: 1.11
Severity: Normal | Resolution:
Keywords: template error | Triage Stage: Accepted
substitution |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Soro wahagnona jean):
I've studied ticket #28618 which has been accepted since 2017 but remains
stalled. The existing PR (#19353) was marked "needs improvement" by
Carlton Gibson because it only provides a blunt global toggle. My proposal
addresses this gap with a Jinja2-inspired Undefined types system that
offers granular, configurable behavior — directly implementing the
if_invalid callable approach originally proposed by Tim Graham in
comment:6.
--
Ticket URL: <https://code.djangoproject.com/ticket/28618#comment:16>
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/0107019d01772a23-95b94ead-2080-455a-8f85-4bae89246593-000000%40eu-central-1.amazonses.com.