def latest_news(context): """ Admin dashboard tag for the quick news form. """ try: context["news_post"] = NewsPost.objects.published().latest('publish_date') except ObjectDoesNotExist: pass context["news_page"] = news_page() return context
def description(self): return strip_tags(news_page().description)
def title(self): return news_page().title