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