Don,thanks for your reply.
 
'/z/catalog/{{ act|default:"new"}}/' worked well before I update svn.
in view, i do like this:
return render_to_response("siteadmin/bid_new.html", {"act":"edit", "title":"edit bid",})
when it's new bid, I return
render_to_response("siteadmin/bid_new.html")

 
On 9/1/06, Don Arbow <[EMAIL PROTECTED]> wrote:

On Aug 31, 2006, at 8:20 AM, HoLin wrote:
> the code   /z/catalog/{{ act|default:"new" }}/  works well before i
> get the
> latest svn trunk.
> I try to replace it like this  /z/catalog/{{ act|
> default_if_none:"new" }}/,
> it also returns blank.
> Does someone know how?


The two tags are not comparable in functionality.

What is the value of 'act'? If it's an empty string, that's what
would be returned. Remember, an empty string is not the same as None.

The 'default' tag works differently as it compares the given value to
true/false. An empty string would cause the default value to be
returned.

Don







--
Regards
HoLin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to