Re: How do I Iterate database object querysets

2014-06-24 Thread Roman Klesel
Hello, I would recommend to create a django form and feed the post data to this form. Because 1) the form will extract the post data for you 2) in the form you will be able the validate and clean the post data (you should definitively do that) The code that saves the data to the form could also l

Re: How do I Iterate database object querysets

2014-06-24 Thread G Z
> > for lis in Licenses.objects.values('code'): > for post_value in insert_data: > if lis in post_value: > license_tag += insert_data[lis] + ',' > so im trying that now but the problem is django is causing issues when iteratin

Re: How do I Iterate database object querysets

2014-06-24 Thread G Z
> > > according to what ive found the following should work but it doesn't > for lis in licenses: if lis.Licenses in insert_data: license_tag += insert_data[lis] + ',' -- You received this message because you are subscribed to the Google Groups "Djan

How do I Iterate database object querysets

2014-06-24 Thread G Z
I am posting data from a page with a dynamic set of licenses, I'm using the license_name as they key for the post values, then im building a string from the posted values. However I can't figure out how to iterate through the database object set. There is no other way for what im doing because i