From 79533e199e8b2352952ff1f257ea27da8ffbfd2a Mon Sep 17 00:00:00 2001 From: TomasNeuner Date: Wed, 20 Aug 2025 09:17:01 +0200 Subject: [PATCH] simplified return_url if condition --- netbox/utilities/templates/buttons/add.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/netbox/utilities/templates/buttons/add.html b/netbox/utilities/templates/buttons/add.html index 3f6fe3b97..278046852 100644 --- a/netbox/utilities/templates/buttons/add.html +++ b/netbox/utilities/templates/buttons/add.html @@ -1,10 +1,6 @@ {% if url %} {% load i18n %} - {% if return_url %} - - {% else %} - - {% endif %} - {% trans "Add" %} - + + {% trans "Add" %} + {% endif %} \ No newline at end of file