Skip to content

Commit

Permalink
Fix a 500 when viewing payments in the admin panel.
Browse files Browse the repository at this point in the history
"is not None" is not a valid Jinja2 test; "is not none" is, because "none" is
the name of a Jinja2 test.
  • Loading branch information
lukegb authored and russss committed Jan 23, 2024
1 parent 543c13f commit 3dba199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/admin/payments/payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Payment {{ payment.id }}</h2>
{% endif %}
{% if payment.provider == 'banktransfer' and payment.state == 'inprogress' %}
<a class="btn btn-primary" href="{{ url_for('.reset_expiry', payment_id=payment.id) }}">Reset expiry</a>
<a class="btn btn-warning {% if payment.reminder_sent_at is not None -%} disabled {%- endif %}" href="{{ url_for('.send_reminder', payment_id=payment.id) }}">Remind</a>
<a class="btn btn-warning {% if payment.reminder_sent_at is not none -%} disabled {%- endif %}" href="{{ url_for('.send_reminder', payment_id=payment.id) }}">Remind</a>
{% endif %}
{% if payment.provider == 'stripe' %}
<a class="btn btn-success" href="{{ url_for('.update_payment', payment_id=payment.id) }}">Update</a>
Expand Down

0 comments on commit 3dba199

Please sign in to comment.