From 240e782bfc2d4d71de7f94aa4cc2139d211d8573 Mon Sep 17 00:00:00 2001 From: Her Email Date: Sun, 3 Dec 2023 12:38:45 -0500 Subject: [PATCH] remove hardcoded shelf labels --- catalog/templates/item_base.html | 2 +- catalog/views.py | 6 +++--- journal/models/__init__.py | 3 ++- journal/models/shelf.py | 8 ++++++-- journal/templates/_sidebar_user_mark_list.html | 11 +++++------ journal/templates/mark.html | 4 ++-- journal/views/common.py | 2 ++ journal/views/mark.py | 15 ++++++++++----- 8 files changed, 31 insertions(+), 20 deletions(-) diff --git a/catalog/templates/item_base.html b/catalog/templates/item_base.html index 81a83d11..47556be4 100644 --- a/catalog/templates/item_base.html +++ b/catalog/templates/item_base.html @@ -54,7 +54,7 @@ {% if request.user.is_authenticated and not mark.shelf_type %}
- {% for k, v in shelf_types %} + {% for k, v in shelf_labels %} {% if v %}