Chanage tag to simple

This commit is contained in:
PCoder 2020-04-01 17:26:12 +05:30
parent 343a9440f0
commit 4435eef077
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 %}
<div class="dashboard-container">
@ -86,7 +86,7 @@
<tbody>
{% for ho_id, stripe_charge_data in invs_charge %}
<tr>
{{ 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 }}
</tr>
{% endfor %}
</tbody>