I need to use the current url parameters and pass it to a form. The thing is that I'm displaying the results in a table using Dango-tables2 so I want to add a payemnt to that specific results using the 'Agregar Pago' button
I have tried with no luck to get the values '1' and '2020-W08' so I can initialize the form with the fields:
- carro = 1
- semana = 2020-W08
and the other fields ready for the user to type the values. So the user only enters the values and are applied to that specifica carro and semana.
in my html tag I have tried:
<a href={% url 'pagoaexistente' request.get_full_path %}><button type="button" class="btn btn-primary" >
but it gives me the complete path in 1 argument which is not what I want.
I have not found a way to get those two values from the table, let's say from the firs row get carro and semana, but I feel that is not correct to do it that way.