#1199: Supporting more than one argument in a custom filter
-----------------------------------+------------------------------------
     Reporter:  Aggelos Orfanakos  |                    Owner:  insin
         Type:  New feature        |                   Status:  closed
    Component:  Template system    |                  Version:
     Severity:  Normal             |               Resolution:  wontfix
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  1
  Needs tests:  1                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by aaugustin):

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


Comment:

 Every instance of "comma separated things" proved to be a problem and was
 removed, and arguments are now allowed to contain any character.

 If we update the proposals from comment 12 to take this into account, we
 end up with this syntax: `myobj|mymethod(variable1, "literal2")` which
 boils down to an instance method call! This doesn't fit in the scope of
 the Django Template Language.

 This proposal no longer fits the modern Django Template Language and I'm
 going to close the ticket.

 If you need multiple arguments, use a custom tag (assignement tags are
 easy) or preprocess data in the view function.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/1199#comment:20>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to