Re: Django Post Issue

2014-06-20 Thread G Z
solved it item.customer_id was a int post needed to be passed as an int.. On Friday, June 20, 2014 12:14:18 PM UTC-6, G Z wrote: > > Thanks lol its one of those days, I notice i was calling the options the > name instead of the select. > > > this might be a django ism but after i post the number

Re: Django Post Issue

2014-06-20 Thread G Z
Thanks lol its one of those days, I notice i was calling the options the name instead of the select. this might be a django ism but after i post the number and try to check it with an if statement it doesnt do anythign but if i print both out they are the same here is the code > {% if user.i

Re: Django Post Issue

2014-06-20 Thread Tom Evans
On Fri, Jun 20, 2014 at 6:33 PM, G Z wrote: > I'm trying to post > customer_id > while generating a combo box with a loop from a database query. > I have the combo box generating and such, but the posted data does not > return the customer id. It returns something weird. > >> >> {% csrf_token %}

Re: Django Post Issue

2014-06-20 Thread Nikolas Stevenson-Molnar
The "name" attribute should be on the select tag. E.g: Foo _Nik On 6/20/2014 10:33 AM, G Z wrote: > I'm trying to post > customer_id > while generating a combo box with a loop from a database query. > I have the combo box generating and such, but the posted data does not > return the customer

Django Post Issue

2014-06-20 Thread G Z
I'm trying to post customer_id while generating a combo box with a loop from a database query. I have the combo box generating and such, but the posted data does not return the customer id. It returns something weird. > {% csrf_token %} > > {% for item in customer %} > {{ > item.customer_name