#27106: Document which template filters can be used in Python code (and how)
--------------------------------------+------------------------------------
Reporter: bmispelon | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.10
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 timgraham):
* stage: Unreviewed => Accepted
Comment:
While I think I've imported from `django.template.defaultfilters` in some
of my own projects, I'm not sure that promoting that pattern as a public
API is a good idea. Some of the filters use functions from
`django.utils.*`, e.g. the `slugify` filter uses
`django.utils.text.slugify`. I don't mind linking to those utility
functions from the template tag documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/27106#comment:1>
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.fe6f241f5379e1f1a3effee263a95deb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.