feat: wishlist view

This commit is contained in:
2025-01-02 12:17:24 +01:00
parent 7ef4d58ffa
commit 63f01db7ba
8 changed files with 118 additions and 7 deletions
+13
View File
@@ -71,6 +71,18 @@ class CartDetail(TemplateView):
}
class WishlistView(TemplateView):
template_name = "web/wishlist.html"
def get_context_data(self, **kwargs):
settings = WebSettings.load()
return {
"title": settings.web_title,
"web_title": settings.web_title,
"description": settings.web_description,
}
@require_http_methods(
[
"POST",
@@ -188,3 +200,4 @@ index = IndexView.as_view()
category_view = CategoryView.as_view()
product_detail = ProductDetail.as_view()
cart_detail = CartDetail.as_view()
wishlist = WishlistView.as_view()