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)