mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 05:32:08 +00:00
12 lines
295 B
Python
12 lines
295 B
Python
from django.views.generic import ListView
|
|
|
|
from .models import Library
|
|
|
|
|
|
class LibraryList(ListView):
|
|
"""List all of our libraries by name"""
|
|
|
|
paginate_by = 25
|
|
queryset = Library.objects.prefetch_related("categories").all().order_by("name")
|
|
template_name = "libraries/list.html"
|