#11743: Error in generic views documentation ---------------------------+------------------------------------------------ Reporter: Fredde | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.1 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ There is an error in [http://docs.djangoproject.com/en/dev/topics/generic- views/#adding-extra-context]:
"The problem has to do with when the queries in extra_context are evaluated. Because this example puts Publisher.objects.all() in the URLconf, it will be evaluated only once (when the URLconf is first loaded). Once you add or remove publishers, you'll notice that the generic view doesn't reflect those changes until you reload the Web server (see Caching and QuerySets for more information about when QuerySets are cached and evaluated)." It's the Book.objects.all() that's only evaluated once. -- Ticket URL: <http://code.djangoproject.com/ticket/11743> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
