From 4435eef0776681e027c5387dda6dbfbf8756cd4e Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 1 Apr 2020 17:26:12 +0530 Subject: [PATCH] Chanage tag to simple --- datacenterlight/templatetags/custom_tags.py | 2 +- hosting/templates/hosting/invoices.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datacenterlight/templatetags/custom_tags.py b/datacenterlight/templatetags/custom_tags.py index 7cc68f07..900d94aa 100644 --- a/datacenterlight/templatetags/custom_tags.py +++ b/datacenterlight/templatetags/custom_tags.py @@ -63,7 +63,7 @@ def escaped_line_break(value): return value.replace("\\n", "\n") -@register.filter('get_line_item_from_hosting_order_charge') +@register.simple_tag def get_line_item_from_hosting_order_charge(hosting_order_id, receipt_url): """ Returns ready-to-use "html" line item to be shown for a charge in the diff --git a/hosting/templates/hosting/invoices.html b/hosting/templates/hosting/invoices.html index 3442ac62..6c8394f0 100644 --- a/hosting/templates/hosting/invoices.html +++ b/hosting/templates/hosting/invoices.html @@ -1,5 +1,5 @@ {% extends "hosting/base_short.html" %} -{% load staticfiles bootstrap3 humanize i18n custom_tags %} +{% load staticfiles bootstrap3 humanize i18n custom_tags get_line_item_from_hosting_order_charge %} {% block content %}
@@ -86,7 +86,7 @@ {% for ho_id, stripe_charge_data in invs_charge %} - {{ ho_id | get_line_item_from_hosting_order_charge: stripe_charge_data.receipt_url }} + {{ get_line_item_from_hosting_order_charge ho_id stripe_charge_data.receipt_url }} {% endfor %}