Re: od-erdene
do not use
{% if qs %}
{% endif %}
use
{% for q in qs %}
{% empty %}
{% endfor %}
then it will work
Brano
On Nov 2, 1:50 pm, Odkoo Ch <oderdene...@gmail.com> wrote:
> hi everyone
>
> <table border="0" align="center" id="product_container">
> <tbody>
> {% if qs %}
> {% autopaginate qs 5 %}
> {% for q in qs %}
> <tr>
> <td><input value="{{q.payment_value}}"
> name="payment_value{{forloop.counter}}" type="text"
> id="id_payment_value{{forloop.counter}}" size="20"
> onchange="onChange({{forloop.counter}})"/></td>
> <td><input value="{{q.note}}"
> name="note{{forloop.counter}}" type="text" id="id_note{{forloop.counter}}"
> size="20" onchange="onChange({{forloop.counter}})"/></td>
> {% endfor %}
> {% paginate %}
> {% endif %}
> </tbody>
> </table>
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home