mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-26 17:22:09 +00:00
- Added ListView and DetailView - Move to pytest style tests - Fix migrations to be clean to rebuild and throw away existing data - Add model_bakery
20 lines
460 B
Python
Executable File
20 lines
460 B
Python
Executable File
from django.views.generic import ListView, DetailView
|
|
|
|
from versions.models import Version, VersionFile
|
|
|
|
|
|
class VersionList(ListView):
|
|
"""Web display of list of Versions"""
|
|
|
|
model = Version
|
|
queryset = Version.objects.active()
|
|
template_name = "versions/list.html"
|
|
|
|
|
|
class VersionDetail(DetailView):
|
|
"""Web display of list of Versions"""
|
|
|
|
model = Version
|
|
queryset = Version.objects.active()
|
|
template_name = "versions/detail.html"
|