def question_detail(request, topic_slug, slug): """ A detail view of a Question. Simply redirects to :view:`faq.views.topic_list` with the addition of a fragment identifier that links to the given :model:`faq.Question`. E.g. ``/faq/#question-slug``. """ return _fragmentify(Question, slug)
def topic_detail(request, slug): """ A detail view of a Topic Simply redirects to :view:`faq.views.topic_list` with the addition of a fragment identifier that links to the given :model:`faq.Topic`. E.g., ``/faq/#topic-slug``. """ return _fragmentify(Topic, slug)
def question_detail(request, topic_slug, slug): """ A detail view of a Question. Simply redirects to a detail page for the related :model:`faq.Topic` (:view:`faq.views.topic_detail`) with the addition of a fragment identifier that links to the given :model:`faq.Question`. E.g. ``/faq/topic-slug/#question-slug``. """ url = reverse('faq-topic-detail', kwargs={'slug': topic_slug}) return _fragmentify(Question, slug, url)