diff --git a/wishlist/templates/wishlist/item.html b/wishlist/templates/wishlist/item.html new file mode 100644 index 0000000..6ade95c --- /dev/null +++ b/wishlist/templates/wishlist/item.html @@ -0,0 +1,7 @@ +{% extends 'base.html' %} +{% block content %} +
{{ object.description }}
+ +{% endblock %} diff --git a/wishlist/templates/wishlist/userwishlists.html b/wishlist/templates/wishlist/userwishlists.html new file mode 100644 index 0000000..2d5feac --- /dev/null +++ b/wishlist/templates/wishlist/userwishlists.html @@ -0,0 +1,13 @@ +{% extends 'base.html' %} +{% block content %} +This wishlist is empty
+{% endif %} +{% endblock %} diff --git a/wishlist/templates/wishlist/wishlist.html b/wishlist/templates/wishlist/wishlist.html new file mode 100644 index 0000000..88a8504 --- /dev/null +++ b/wishlist/templates/wishlist/wishlist.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% block content %} +{{ wishlist.description }}
+{% endif %} + +{% if object_list %} +This wishlist is empty
+{% endif %} +{% endblock %} diff --git a/wishlist/views.py b/wishlist/views.py index 9b18ac5..c82c833 100644 --- a/wishlist/views.py +++ b/wishlist/views.py @@ -4,11 +4,11 @@ import django.views.generic as dv class WishedItemView(dv.DetailView): model = m.WishedItem - template_name = ... + template_name = 'wishlist/item.html' class UserWishLists(dv.ListView): model = m.WishList - template_name = ... + template_name = 'wishlist/userwishlists.html' def get_queryset(self): qs = super().get_queryset() @@ -16,7 +16,7 @@ class UserWishLists(dv.ListView): class WishListView(dv.ListView): model = m.WishedItem - template_name = ... + template_name = 'wishlist/wishlist.html' def get_queryset(self): qs = super().get_queryset()