close listing fixes

This commit is contained in:
Priyatham-sai-chand 2020-10-27 15:29:37 +05:30
parent 141491e9dc
commit 42602ff2c7
3 changed files with 72 additions and 72 deletions

View File

@ -5,7 +5,7 @@
<h2>Listing : {{ Listing.title}}</h2>
<div class="text-right">
{% if user.username|stringformat:"s" == Listing.user|stringformat:"s" %}
{% if user.username|stringformat:"s" == Listing.user|stringformat:"s" and not Listing.closed %}
<a class="btn btn-danger" href="{% url 'close_bid' Listing.title %}" role="button" style="display:inline;">Close this Listing</a>
{% endif %}

Binary file not shown.