diff --git a/auctions/__pycache__/views.cpython-37.pyc b/auctions/__pycache__/views.cpython-37.pyc index f6b5070..b61d468 100644 Binary files a/auctions/__pycache__/views.cpython-37.pyc and b/auctions/__pycache__/views.cpython-37.pyc differ diff --git a/auctions/templates/auctions/index.html b/auctions/templates/auctions/index.html index e369078..bb09930 100644 --- a/auctions/templates/auctions/index.html +++ b/auctions/templates/auctions/index.html @@ -14,18 +14,42 @@
- bid price : ${{listing.price}}
+ {% if not listing.closed %}
+
+ {% for bidding in listing.bidding_listing.all %}
+ bid price : ${{bidding.bid_value}}
+ Last bid by: {{bidding.user}}
+
created by: {{listing.user}}
+ {% endfor %}
created on {{listing.date_added}}
+ CLOSED
+
+ This listing is over.
+
+
+ {% for bidding in listing.bidding_listing.all %}
+ {% if user == bidding.user %}
+ You won this listing!!!
+ {% else %}
+ This is won by @{{ bidding.user }}
+ for ${{bidding.bid_value}}
+ {% endif %}
+ {% endfor %}
+
+