UPDATE:

Thanks Anatoliy for you help. You spotted the problem and it now works
as I originally wanted it to.

The problem was that I had defined an array at the module level, and
then updated the array with results from a queryset.

Why this is a problem is that every time the page is refreshed, the
array continues to be updated and grows with each update (i.e. rather
than be built fresh with each update). This means that the indexes I
was referencing in loops were no longer accurate and failing.

The solution is to put variables used in that way inside of a function
and return the array.



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to