From 0a27b0677b238740e73673fb4cd10b9ecc31ede3 Mon Sep 17 00:00:00 2001 From: Priyatham-sai-chand Date: Tue, 20 Oct 2020 22:41:58 +0530 Subject: [PATCH] bids improved --- auctions/__pycache__/admin.cpython-37.pyc | Bin 335 -> 364 bytes auctions/__pycache__/models.cpython-37.pyc | Bin 2207 -> 2354 bytes auctions/__pycache__/urls.cpython-37.pyc | Bin 685 -> 774 bytes auctions/__pycache__/views.cpython-37.pyc | Bin 4042 -> 4624 bytes auctions/admin.py | 3 +- auctions/migrations/0001_initial.py | 27 ++++++++-- .../0002_remove_auctionlisting_date_added.py | 17 ------ .../0003_auctionlisting_date_added.py | 20 ------- auctions/migrations/0004_comment.py | 25 --------- .../migrations/0005_auto_20201018_2304.py | 23 -------- .../migrations/0006_auto_20201019_1109.py | 27 ---------- .../migrations/0007_auto_20201019_1723.py | 34 ------------ .../migrations/0008_auto_20201019_1725.py | 18 ------- .../migrations/0009_auto_20201019_1740.py | 18 ------- .../migrations/0010_auto_20201019_1744.py | 18 ------- .../__pycache__/0001_initial.cpython-37.pyc | Bin 2931 -> 3549 bytes auctions/models.py | 3 ++ auctions/templates/auctions/category.html | 5 +- auctions/templates/auctions/index.html | 10 ++-- auctions/templates/auctions/layout.html | 2 +- auctions/templates/auctions/listing.html | 51 +++++++++++++++--- auctions/templates/auctions/watchlist.html | 9 +++- auctions/urls.py | 6 ++- auctions/views.py | 38 +++++++++---- db.sqlite3 | Bin 245760 -> 245760 bytes 25 files changed, 123 insertions(+), 231 deletions(-) delete mode 100644 auctions/migrations/0002_remove_auctionlisting_date_added.py delete mode 100644 auctions/migrations/0003_auctionlisting_date_added.py delete mode 100644 auctions/migrations/0004_comment.py delete mode 100644 auctions/migrations/0005_auto_20201018_2304.py delete mode 100644 auctions/migrations/0006_auto_20201019_1109.py delete mode 100644 auctions/migrations/0007_auto_20201019_1723.py delete mode 100644 auctions/migrations/0008_auto_20201019_1725.py delete mode 100644 auctions/migrations/0009_auto_20201019_1740.py delete mode 100644 auctions/migrations/0010_auto_20201019_1744.py diff --git a/auctions/__pycache__/admin.cpython-37.pyc b/auctions/__pycache__/admin.cpython-37.pyc index dfd5cc25962a4ac56a779c84df76ed9bf9f4e71d..bdfb581390bba6a4e00d4de9bad9e736f6079be4 100644 GIT binary patch delta 152 zcmX@l^oEJoiI5cz8kyny2VWPUGQ7&5)8zVz1V;1`Yj#TD_jBqv!5}Or? z%{H+}O_})?pJQoqNoIbYPiApRW?uR&cIW)u+|<01TP#kQDaC%8oD;X|Fcq;+yeG!S a4Yag~d*Uy50UjWWhmnU-gc(HgFaiJz3ntD0 delta 142 zcmaFEbe@UViIhdn)rnMmU=ViOo8(NlljN z7N28ja!F=>o=;|RNoHR9Eq3Sp+}zZ>5fGBnN0R!latW_8N&o57#OQ~oHA32_2T1;ON!#-{WN(eZ(x^HEwTV91}Q57SzDwF iBESZ)f>q0aQ@L2_ish si+Qz2t#LLUY00f&P`s2-*85kaeI4~dxWHj49ly%vqc% z+)y45kjIt61Lg68d3;bFKaj_rA^_zHqVR-(Jf0L`sGJCp$D1Mw<%t1#d@14}UOI0S ze~LsfgQn!fX91HP7$@7^Vl7WBNzSO^Ps&Wuw<#_uvMR|e$w{@l#S9dv5=_p?FHS`f z=L8GI17-a*1two(j8HA&2YRYV07QVic#FHVD5oH?q$IT{uXrUxktj$)bh0;-n}Q6G N$-~6M%*Tiw0surcOMU%^ zB$i~nWQ1^7%Q92Ti*HSqV>Drn;waB7p6tswgV|4$Z?ZB|gzPQW^2Czlj9c8LML9rS iC8f4no zp9DwY>EaX)3Ew;<+Tm9%Cx{dZ8q4W66DQ?8tI|0}K6W}1XUMt@XBu131pm_m+g@Dq zau(-XSQ5tcC@dFHiM1N5>1_t=30u`;L(O#1ac0CO;(D1e4dJ%Hc%X}0sM%l+YpZ7L zpw8QR+XU;0v1+xg^~{FGwAgKHV58jt=ehpSz_f7rlT-9CDf-d_kBKQfR!|;FxoX&G z_|3Sy5W;7kArx>^@`XL#@$|&Go+cz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#ch9AKLRR&LnBYgXI2Va3r>CT{5kT2$ZG|FSdvbeA zh*or?RNC3und3pY;aA&Ycdi!B$-Fx~L+tSEgx6H63Gs=4H9tcEi8Ta9cEmqL1aUjC1PmGX_{8yXo;~cr ztUo~i0Eyx5FYsdGX%pj*@NS&lEd-3tVe&rj^SsY9Z|2v;kLl4;CZi3B)BNh`3*+xc z&!q3t=P&P2e;qbFRF|NP6?vEZr|lVh+r9&pP-iJn^(36MQ}6_2p-PJx1W8DN;>p725Gx;NKMlo>{VSGFuUo=1 zcn(KiLJ0o~gBMX;#97J9xR?KodnH_N!4fRPO0>rHl!F;K{%?$aB}N{^%t0Pr3(Ik_ zlOZN+UII)nVI_~|0V+c|e10ZvC;M-g8=QBX#bUAB?G_lJHEg)NS1@V8Jt>lwVPU7( zVH8}G>k-u3l>*b_CDH~3M&^B8UjKISiO>A;T+r)I( z{kSJ@(H3T_{TQVx9m=@FN&~V=dk$NRfwt;$+M+em#B4ooB}XMZ3*mJ)w8?}d;TUw+!7PwV1e`#v5ztSKri+6cq6FchU$~82G$Os)HMrRb zxj?%t9lxH=qwM*I^e)oWDt^Pu1UJF|sZOR&!{k%{w^~KVenq=Cn?<8&E+HdHx`{MV ePoeApjfJ)EYfH%VziFMZcr=<1udaVEoc#ku@&hmc delta 268 zcmcaB{aK99iIPvl$2^oDWczD~w^#uS%c#x$lB*Hrc_&J?Q@Cos$DUgi|vUgmV>D1{WiU {% if user.is_authenticated %} -
+ {% csrf_token %} {% if user not in list.watchlists.all %} {% else %} - + {% endif %} +
{% else %} log in to watch this listing diff --git a/auctions/templates/auctions/index.html b/auctions/templates/auctions/index.html index 2a4aa48..56c904e 100644 --- a/auctions/templates/auctions/index.html +++ b/auctions/templates/auctions/index.html @@ -4,7 +4,7 @@

Active Listings

{% for listing in Listings %} -
+
@@ -19,7 +19,7 @@ bid price : ${{listing.price}}
created by: {{listing.user}}
- created at {{listing.date_added}} + created on {{listing.date_added}}

@@ -27,13 +27,15 @@
{% if user.is_authenticated %} -
+ {% csrf_token %} {% if user not in listing.watchlists.all %} {% else %} - + {% endif %} + +
{% else %} log in to watch this listing diff --git a/auctions/templates/auctions/layout.html b/auctions/templates/auctions/layout.html index c9a147e..fb8be93 100644 --- a/auctions/templates/auctions/layout.html +++ b/auctions/templates/auctions/layout.html @@ -25,7 +25,7 @@ {% if user.is_authenticated %}