[Django] #31875: Improve Documentation of Template Filters with Multiple Arguments

5 views
Skip to first unread message

Django

unread,
Aug 10, 2020, 10:48:51 AM8/10/20
to django-...@googlegroups.com
#31875: Improve Documentation of Template Filters with Multiple Arguments
------------------------------------------------+------------------------
Reporter: Matthew Pava | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
Looking at how to [https://docs.djangoproject.com/en/dev/howto/custom-
template-tags/#writing-custom-template-filters write custom filters], one
can guess that you can do so with multiple arguments. However, there
aren't any evident examples of it. I honestly couldn't find any
documentation about the syntax in the template of multiple arguments for a
template filter. Are they separated by spaces? Commas? A comma and a
space?

--
Ticket URL: <https://code.djangoproject.com/ticket/31875>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 10, 2020, 11:01:02 AM8/10/20
to django-...@googlegroups.com
#31875: Improve Documentation of Template Filters with Multiple Arguments
-------------------------------------+-------------------------------------

Reporter: Matthew Pava | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Matthew Pava):

* status: new => closed
* resolution: => wontfix


Comment:

Okay, I don't know why I didn't notice the first statement in that
section.
"Custom filters are Python functions that take one or two arguments:"

I apologize for wasting your time.

--
Ticket URL: <https://code.djangoproject.com/ticket/31875#comment:1>

Reply all
Reply to author
Forward
0 new messages