Hello, Tonne. Can you show code of your tag and template where it used?
On Apr 20, 10:50 am, Tonne <pascal.bomp...@gmail.com> wrote: > I have a simple_tag that receives a queryset, then updates an array > based on the queryset result (using a function), and finally it > returns the array to the template context. > > It works beautifully the first time it is viewed with a browser. > However, on subsequent "pageviews" the array is not update, and an > "untouched" array is sent in the context. > > If I resave the simple_tag source file, it will again work perfectly > for the first view, while subsequent views will do as above. > > So clearly the first time the server receives a HTTP request it the > script runs correctly, but somehow either the queryset is not being > received of the function is not being called after first request. > > This is while running on the development server by the way. > > I'm a bit stumped. Anyone have an idea of that this could be? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---