I have one grid

<form name="form" method="POST">
       </div>
                    {% for pr in parasalida %}
                          <tr style="font-size:14px">
                            <td>{{ pr.estado}}</td>
                            <td>{{ pr.fecha_ing|date:'d-m-Y'}}</td>
                            <td>{{ pr.lote}}</td>
                            <td>{{ pr.oc_ascoex}}</td>
                            <td>{{ pr.cantidad}}</td>
                            <td>{{ pr.extraida}}</td>
                            <td><input type="number" name='{{pr.id_reg}}' 
class='saca' value="{{saca_x}}" placeholder='0'/></td>

                          </tr>
                    {% endfor %}

but, I don't know how to get the value in view:

    parasalida = Parasalida.objects.all() 
    a_prueba = []
    for cur in parasalida:
        saca_x = request.GET.get('cur.id_reg') #  template's value 
according to name property
        a_prueba.append(saca_x)

The list is full with  [None,None,None,..]

All others fields are already with values. The only values that user input 
is "input text"

Thank for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a2ba10d5-639e-4a08-88fe-a4206e18c249n%40googlegroups.com.

Reply via email to