bornhack-website/src/wishlist/views.py

17 lines
328 B
Python

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from .models import Wish
class WishListView(ListView):
model = Wish
template_name = "wish_list.html"
class WishDetailView(DetailView):
model = Wish
template_name = "wish_detail.html"
slug_url_kwarg = "wish_slug"