Well, I guess a good nights sleep did me well.... I discovered my error, the problem was within my loops...
I had to move one of my appends outside the inside for loop... for a in range_list: for b in used_number_list: if str(b) == str(a): try: prod = Product.objects.get(mynumbers__number=a) myrange.append({'num': a, 'name': prod.name, 'desc': prod.desc }) except: badnum = Number.objects.get(number=a) badnum.delete() myrange.append({'num': a }) break myrange.append({'num': a }) continue -Mitch On Mon, Jun 8, 2009 at 9:35 AM, Mitch Anderson<xofre...@gmail.com> wrote: > On Mon, Jun 8, 2009 at 3:46 AM, Chris Stoyles<cstoy...@gmail.com> wrote: >> The problem is that there is no "number_list" key in your context, there is >> only a "range" and "range_list" key (take a look at where you call >> "render_to_response"). I think what you want to do is actually pass your >> "net" variable into the template. Although your "net" variable doesn't >> appear to have been defined anywhere in your view, so the code you've sent >> us probably won't execute. Are all the calls you make to net.append() >> supposed to be myrange.append() instead? >> > > Yes, my bad, I am doing the myrange.append(), i've been trying > different things and swapping around some variables... and missed that > one for my post... sorry... > > -Mitch > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---