From 02bc2f46675a5ffbdd64b43bd252ecf48fe138d0 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Wed, 9 Mar 2022 18:29:44 +0100 Subject: [PATCH] Introduced namespaces for views/actions --- container/templates/container/container_details.html | 2 +- container/templates/container/index.html | 4 ++-- container/urls.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/container/templates/container/container_details.html b/container/templates/container/container_details.html index 1f0b679..0b38c24 100644 --- a/container/templates/container/container_details.html +++ b/container/templates/container/container_details.html @@ -1,4 +1,4 @@

Container: {{ container.named_id }}

{{ container.description }}
Color: {{ container.color }}
-
Container Type: {{ container.container_type.named_id }}
+
Container Type: {{ container.container_type.named_id }}
diff --git a/container/templates/container/index.html b/container/templates/container/index.html index 4bb3d08..f398ceb 100644 --- a/container/templates/container/index.html +++ b/container/templates/container/index.html @@ -3,7 +3,7 @@ {% if container_list %} {% else %} @@ -15,7 +15,7 @@ {% if container_type_list %} {% else %} diff --git a/container/urls.py b/container/urls.py index 741186c..7821b28 100644 --- a/container/urls.py +++ b/container/urls.py @@ -2,6 +2,7 @@ from django.urls import path from . import views +app_name = 'container' urlpatterns = [ path('', views.index, name='index'), path('/', views.container_details, name='container_details'),