bornhack-website/camps/views.py

11 lines
236 B
Python

from django.views.generic import ListView, DetailView
from django.utils import timezone
from .models import *
class CampDetailView(DetailView):
model = Camp
template_name = 'camp_detail.html'
slug_url_kwarg = 'camp_slug'