RE: list? queryet? joining together

2017-01-13 Thread Mike Jones
Thanks for response I’ll try to answer as below in red From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Andrew Beales Sent: 12 January 2017 19:52 To: Django users Subject: Re: list? queryet? joining together Hi, just a couple of follow-up questions as

RE: template tag help please?

2018-08-17 Thread Mike Jones
Yes For example, in the filter {{ var|foo:"bar" }}, the filter foo would be passed the variable var and the argument "bar". I want to pass 2 (maybe 3) variables and correct me if I am wrong but Custom filters are just Python functions that take one or two arguments: So could do {{ v

RE: template tag help please?

2018-08-22 Thread Mike Jones
Ah I was just doing that to prove it was working This is the actual tag from django import template from django.conf import settings from django.utils.html import escape from band.models import Data register = template.Library() @register.simple_tag def do_cost( name, avn, avd,

RE: template tag help please?

2018-08-23 Thread Mike Jones
u are sending the parameters and have the parameters in the function - use the parameters. In other words: avn = kwargs['avn'] avd = kwargs['avd'] name = kwargs['name'] That is unnecessary Regards, Andréas Den ons 22 aug. 2018 kl