feat: wishlist view
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user