summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-02-12 15:18:24 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-02-12 15:18:24 +0000
commitd1f85555008f4444927c92ea3d9b1286079ef650 (patch)
tree0be31dec034e690feae365e103c920a4375ff676 /docs
parent03c80067c6061cd6f7484aeb9f953ffad59b8fad (diff)
Fixed #16150 -- Added 'feed_url' and clarified 'link' in the Feed reference docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/syndication.txt25
1 files changed, 21 insertions, 4 deletions
diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index e66bb46206..18e447d481 100644
--- a/docs/ref/contrib/syndication.txt
+++ b/docs/ref/contrib/syndication.txt
@@ -388,16 +388,33 @@ This example illustrates all possible attributes and methods for a
def link(self, obj):
"""
- # Takes the object returned by get_object() and returns the feed's
- # link as a normal Python string.
+ # Takes the object returned by get_object() and returns the URL
+ # of the HTML version of the feed as a normal Python string.
"""
def link(self):
"""
- Returns the feed's link as a normal Python string.
+ Returns the URL of the HTML version of the feed as a normal Python
+ string.
+ """
+
+ link = '/blog/' # Hard-coded URL.
+
+ # FEED_URL -- One of the following three is optional. The framework
+ # looks for them in this order.
+
+ def feed_url(self, obj):
+ """
+ # Takes the object returned by get_object() and returns the feed's
+ # own URL as a normal Python string.
+ """
+
+ def feed_url(self):
+ """
+ Returns the feed's own URL as a normal Python string.
"""
- link = '/foo/bar/' # Hard-coded link.
+ feed_url = '/blog/rss/' # Hard-coded URL.
# GUID -- One of the following three is optional. The framework looks
# for them in this order. This property is only used for Atom feeds