From 6d085fc75b4b6253212e930bbfc9196b992fbf56 Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Sun, 6 Mar 2022 10:52:44 +0100 Subject: [PATCH] fix: Display human name for tea type --- tea/templates/tea/detail.html | 2 +- tea/templates/tea/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tea/templates/tea/detail.html b/tea/templates/tea/detail.html index 4fe0282..3f35954 100644 --- a/tea/templates/tea/detail.html +++ b/tea/templates/tea/detail.html @@ -1,7 +1,7 @@ {% extends 'homepage/base.html' %} {% block content %} -

{{ tea.company.name }} - {{ tea.name }} ({{ tea.tea_type }})

+

{{ tea.company.name }} - {{ tea.name }} ({{ tea.get_tea_type_display }})

{{ tea.ingredients }} diff --git a/tea/templates/tea/index.html b/tea/templates/tea/index.html index a657f40..0f31fe2 100644 --- a/tea/templates/tea/index.html +++ b/tea/templates/tea/index.html @@ -7,6 +7,7 @@ {% for tea in company.tea_set.all %}

  • {{ tea.name }} + {{ tea.get_tea_type_display }}
  • {% endfor %}