diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-03-10 03:12:48 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-03-10 03:12:48 +0000 |
| commit | 70037f80acff3b7d9722f817c5114e80f4c5af6d (patch) | |
| tree | 3c764c182c81198d8f1d1c61d1707edb077f9001 /docs | |
| parent | ff2d0ebdb8a57aa00d31c41b0556c456943f2b53 (diff) | |
Updated syndication framework porting notes.
This is based on some experience porting older code and trying to work
out why my feed content was empty.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.2.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/releases/1.2.txt b/docs/releases/1.2.txt index 9851d01652..d320b88201 100644 --- a/docs/releases/1.2.txt +++ b/docs/releases/1.2.txt @@ -508,9 +508,14 @@ Using the new Feed class, these feeds can be deployed directly as views:: # ... ) -If you currently use the ``feed()`` view, the ``LatestEntries`` class -would not need to be modified apart from subclassing the new -:class:`~django.contrib.syndication.views.Feed` class. +If you currently use the ``feed()`` view, the ``LatestEntries`` class would +often not need to be modified apart from subclassing the new +:class:`~django.contrib.syndication.views.Feed` class. The exception is if +Django was automatically working out the name of the template to use to render +the feed's description and title elements (if you were not specifying the +``title_template`` and ``description_template`` attributes). You should ensure +that you always specify ``title_template`` and ``description_template`` +attributes, or provide ``item_title()`` and ``item_description()`` methods. However, ``LatestEntriesByCategory`` uses the ``get_object()`` method with the ``bits`` argument to specify a specific category to show. In |
