diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index 27b8fc0..2418dba 100644
a
|
b
|
This simple example, taken from `chicagocrime.org`_, describes a feed of the
|
53 | 53 | latest five news items:: |
54 | 54 | |
55 | 55 | from django.contrib.syndication.views import Feed |
| 56 | from django.core.urlresolvers import reverse |
56 | 57 | from chicagocrime.models import NewsItem |
57 | 58 | |
58 | 59 | class LatestEntriesFeed(Feed): |
… |
… |
latest five news items::
|
69 | 70 | def item_description(self, item): |
70 | 71 | return item.description |
71 | 72 | |
| 73 | # item_link is only needed if NewsItem has no get_absolute_url method. |
| 74 | def item_link(self, item): |
| 75 | return reverse('news-item', args=[item.pk]) |
| 76 | |
72 | 77 | To connect a URL to this feed, put an instance of the Feed object in |
73 | 78 | your :doc:`URLconf </topics/http/urls>`. For example:: |
74 | 79 | |