Code

Ticket #2319: viewonsiteclarification.diff

File viewonsiteclarification.diff, 698 bytes (added by DavidReynolds, 7 years ago)

Documentation clarification for view on site, within Sites.

Line 
1Index: docs/sites.txt
2===================================================================
3--- docs/sites.txt      (revision 6137)
4+++ docs/sites.txt      (working copy)
5@@ -314,7 +314,9 @@
6       view passes the current ``Site`` name to the template as ``{{{ site_name }}}``.
7 
8     * The shortcut view (``django.views.defaults.shortcut``) uses the domain of
9-      the current ``Site`` object when calculating an object's URL.
10+      the current ``Site`` object when calculating an object's URL. This is
11+      also used in the object-editing page of the admin interface, if the
12+      object defines ``get_absolute_url()`.
13 
14 .. _redirects framework: ../redirects/
15 .. _flatpages framework: ../flatpages/