Modify templates & views

Have problems in /order/list about django template tags if/else/endif.
order.order_id = 0, "{% if order.order_id == 0 %}" doesn't work