#24199: string_if_invalid doesn't provide information in many cases
--------------------------------------+------------------------------------
     Reporter:  adam-iris             |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Template system       |                  Version:  master
     Severity:  Normal                |               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 Daniel Hahler):

 * cc: django@… (added)


Comment:

 Just for information: pytest-django provides a helper (`--fail-on-
 template-vars`) that enables this.
 It goes through some hoops to get to the required information
 (`template`): https://github.com/pytest-dev/pytest-
 
django/blob/ca3b5a2498ac2714f22305fded1c1518a66a07f6/pytest_django/plugin.py#L476.

 I've looked at it when trying to skip it with the `default` filter, but
 then created a PR for Django directly:
 https://github.com/django/django/pull/8200.

--
Ticket URL: <https://code.djangoproject.com/ticket/24199#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.4723106f71afc6e39edb529e62c1ad32%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to