From 31be790ee5adbf96129c6d5cadb92ff0799ed5d6 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Wed, 15 May 2024 16:41:21 +0200 Subject: [PATCH] refactor(generic): replace templatetags with object getters --- apis_core/generic/templates/columns/delete.html | 5 ++--- apis_core/generic/templates/columns/description.html | 3 +-- apis_core/generic/templates/columns/edit.html | 5 +---- apis_core/generic/templates/columns/view.html | 3 +-- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/apis_core/generic/templates/columns/delete.html b/apis_core/generic/templates/columns/delete.html index 1cf5afde4..765688231 100644 --- a/apis_core/generic/templates/columns/delete.html +++ b/apis_core/generic/templates/columns/delete.html @@ -1,8 +1,7 @@ -{% load apisgeneric %} delete diff --git a/apis_core/generic/templates/columns/description.html b/apis_core/generic/templates/columns/description.html index e75f409cd..6cf08687c 100644 --- a/apis_core/generic/templates/columns/description.html +++ b/apis_core/generic/templates/columns/description.html @@ -1,2 +1 @@ -{% load apisgeneric %} -{{ record }} +{{ record }} diff --git a/apis_core/generic/templates/columns/edit.html b/apis_core/generic/templates/columns/edit.html index b275eb7a0..0abea41ca 100644 --- a/apis_core/generic/templates/columns/edit.html +++ b/apis_core/generic/templates/columns/edit.html @@ -1,4 +1 @@ -{% load apisgeneric %} -edit +edit diff --git a/apis_core/generic/templates/columns/view.html b/apis_core/generic/templates/columns/view.html index 85eeae49b..9cefcb4ac 100644 --- a/apis_core/generic/templates/columns/view.html +++ b/apis_core/generic/templates/columns/view.html @@ -1,4 +1,3 @@ -{% load apisgeneric %} visibility