From 27c3564ffa206789d64408caa54556f0bcd26cde Mon Sep 17 00:00:00 2001 From: Sebastian Gutzeit Date: Tue, 7 Nov 2023 12:11:19 +0100 Subject: [PATCH] =?UTF-8?q?App=20Datenmanagement:=20Verbesserung=20der=20D?= =?UTF-8?q?arstellung=20von=20Links=20auf=20Fremdschl=C3=BCssel-Elemente?= =?UTF-8?q?=20in=20Tabellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datenmanagement/views/views_list_map.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/datenmanagement/views/views_list_map.py b/datenmanagement/views/views_list_map.py index ca447251..82eba9f8 100644 --- a/datenmanagement/views/views_list_map.py +++ b/datenmanagement/views/views_list_map.py @@ -92,7 +92,6 @@ def prepare_results(self, qs): foreign_model = value._meta.label foreign_model_primary_key = value._meta.pk.name foreign_model_title = self.columns.get(column) - foreign_model_attribute_for_text = self.columns_with_foreign_key.get(column) data = '' + str( - getattr(value, foreign_model_attribute_for_text)) + '' + + foreign_model_title + ' ansehen oder bearbeiten">' + str(value) + '' # take all foreign key values as they are else: data = escape(value)