From 67b8a1ceda0d73739b18045c8b405a1d22b4480a Mon Sep 17 00:00:00 2001 From: Fernando Correa Neto Date: Tue, 9 Dec 2008 23:16:56 +0000 Subject: Add context.root to router so the root model can be easily accessed from a view --- docs/narr/traversal.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/narr') diff --git a/docs/narr/traversal.rst b/docs/narr/traversal.rst index f85c012e6..ead48aac4 100644 --- a/docs/narr/traversal.rst +++ b/docs/narr/traversal.rst @@ -272,3 +272,10 @@ The :term:`view name` will always be available to a view as the single string (possibly the empty string if we're rendering a default view). +The :term:`root` will always be available to a view as the +``root`` attribute of the :term:`request` object. It will be the +root model instance of the current application. + +The :term:`context` will always be available to a view as the +``context`` attribute of the :term:`request` object. It will be the +model instance of the current application. \ No newline at end of file -- cgit v1.2.3