Ejemplo n.º 1
0
    def __getattr__(self, name):
        # The reverse() call should be made after all URLs
        # are mapped. So we cannot use it when declaring the
        # 'link' property.

        if name == 'link':
            return reverse('news_archive_index')

        return Feed.__getattr__(self, name)
Ejemplo n.º 2
0
    def __getattr__(self, name):
        # The reverse() call should be made after all URLs
        # are mapped. So we cannot use it when declaring the
        # 'link' property.

        if name == 'link':
            return reverse('news_archive_index')

        return Feed.__getattr__(self, name)