> on my template i have:
>
> {% au.id|getbidstatus %}
>
> if i try {% au.id|getbidstatus(request.user.id) %},  I get this:
>
> Could not parse the remainder: '(request.user.id)' from 'au.id|
> getbidstatus(request.user.id)'


ok ... I'M LOOKING AT THE DOCS and i'm closer but  it's only doing the
literals, not the values:


template side i have:

{% getbidstatus au.id request.user.id %}



in my py file for my template tags i have this:


@register.tag(name="getbidstatus")

def do_getbidstatus(parser, token):
    tagname, auctionid, bidderid = token.split_contents()
    assert False, auctionid



when i run it and get the assertion error, it prints au.id, not the
value of au.id

what am i doing wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to