You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
358 B
Python

from django.views.generic import ListView
from nano.faq.models import QA
class ListFAQView(ListView):
queryset = QA.objects.all().order_by('question')
def get_context_data(self, **kwargs):
context = super(ListFAQView, self).get_context_data(**kwargs)
context['me'] = 'faq'
return context
list_faqs = ListFAQView.as_view()