Re: save a values_list to a charfield

2010-07-27 Thread Nick
It is a bit of a last minute deal and will be changed after today, but we had a handful of "improvements" handed down to us from management and this was the fastest thing we could come up with using some old mysql query logic and several already built templates for output. I appreciate the help.

Re: save a values_list to a charfield

2010-07-27 Thread ringemup
', '.join(primary_ids) The fact that you're doing this with foreign keys, though, suggests to me that you may have a database normalization problem. On Jul 27, 3:26 pm, Nick wrote: > I am getting this to save but I can't get it to output properly > > it's outputting as [16L, 451L, 521L] for a l

Re: save a values_list to a charfield

2010-07-27 Thread Nick
I am getting this to save but I can't get it to output properly it's outputting as [16L, 451L, 521L] for a list of id's, which it should according to documentation. However, how can I output it like this 16, 451, 521 On Jul 27, 12:11 pm, Nick wrote: > I am needing to do some duct taping for a p

save a values_list to a charfield

2010-07-27 Thread Nick
I am needing to do some duct taping for a project that is going on right now. In it I need to take a values_list of id's from a ManyToMany field and save those values to a varchar field so a mysql query can access the values. I am working with two different sets of developers and this is the best w