From 70037f80acff3b7d9722f817c5114e80f4c5af6d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 10 Mar 2010 03:12:48 +0000 Subject: [PATCH] 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 --- docs/releases/1.2.txt | 11 ++++++++--- 1 file 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