Ticket #5855: patch-5855.diff

File patch-5855.diff, 764 bytes (added by niran@…, 17 years ago)

patch

  • django/contrib/syndication/feeds.py

     
    6060        Returns a feedgenerator.DefaultFeed object, fully populated, for
    6161        this feed. Raises FeedDoesNotExist for invalid parameters.
    6262        """
    63         if url:
     63        if hasattr(self, 'get_object'):
    6464            try:
    6565                obj = self.get_object(url.split('/'))
    66             except (AttributeError, ObjectDoesNotExist):
     66            except (ObjectDoesNotExist):
    6767                raise FeedDoesNotExist
     68        elif url:
     69            raise FeedDoesNotExist
    6870        else:
    6971            obj = None
    7072
Back to Top