From f059e317b6099cbbe8d4ddd1efddb67c8eb610e6 Mon Sep 17 00:00:00 2001 From: graks Date: Wed, 26 Sep 2018 13:14:02 +0200 Subject: [PATCH] added ratings too universityreview model --- .../__pycache__/__init__.cpython-36.pyc | Bin 167 -> 167 bytes .../__pycache__/settings.cpython-36.pyc | Bin 2744 -> 2436 bytes .../__pycache__/urls.cpython-36.pyc | Bin 1085 -> 1085 bytes .../__pycache__/wsgi.cpython-36.pyc | Bin 580 -> 580 bytes backend/db.sqlite3 | Bin 139264 -> 208896 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 163 -> 163 bytes .../postings/__pycache__/admin.cpython-36.pyc | Bin 286 -> 286 bytes .../__pycache__/models.cpython-36.pyc | Bin 562 -> 2047 bytes .../api/__pycache__/__init__.cpython-36.pyc | Bin 167 -> 167 bytes .../__pycache__/serializers.cpython-36.pyc | Bin 763 -> 771 bytes .../api/__pycache__/urls.cpython-36.pyc | Bin 397 -> 397 bytes .../api/__pycache__/views.cpython-36.pyc | Bin 1457 -> 1457 bytes backend/postings/api/serializers.py | 2 +- .../migrations/0004_auto_20180926_1312.py | 86 ++++++++++++++++++ .../__pycache__/0001_initial.cpython-36.pyc | Bin 792 -> 792 bytes .../0002_auto_20180916_1536.cpython-36.pyc | Bin 623 -> 623 bytes ...0003_universityreview_title.cpython-36.pyc | Bin 668 -> 668 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 174 -> 174 bytes backend/postings/models.py | 1 + 19 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 backend/postings/migrations/0004_auto_20180926_1312.py diff --git a/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc b/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc index a57441012a2a1fd05207c0a4b971dd300ff6bd38..5322945907daaff65b94a236f6d79a1921052b73 100644 GIT binary patch delta 15 WcmZ3^xSWyQn3tF9YWnJl>*OI delta 15 WcmZ3^xSWyQn3tF9Y{BA*>)UGDHcdXheymXhw;qutbRg zu{aP*q-aG+rZ5FFXliffVvJ=It71*f(=9EIVh#;)uHw)yE=erOOxEALl*5{lO&(}k Zk^JOmoEeM>ll{5Ecv)EZSeT%Y4FKvg9_|1D delta 434 zcmZn>-XW@N%*)G_R=7C&I3EMUV+JI^31m9}aq**x%KJ4^3{nhJbmlNc38&~riKOU7 ziKehbi2<=V5KE-!M@gnI1v6+GZDwJNWvl5}#I-n44OjUzDv^kXn?RSzMf% zpI5BsS?pL^l98HMl9`-XlA7|%232i*R(XkDB0>dFkDgbszh8K2Qb>MwY95kipwus8 zRNY{m^-#k>T7y%;)}rY$#G(sHlT%`GW-_W4O{OR*7gsmOP@j}D(gDZd25 delta 16 XcmdnXv6qA0n3tF9Y{BA<>}D(gDU}4f diff --git a/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc b/backend/RateMyCourse/__pycache__/wsgi.cpython-36.pyc index ebe18f9bc5313fc0881c72d61f300af8d0552a1a..5bc65929102070fe324e6102eb8074251d4ffeba 100644 GIT binary patch delta 16 XcmX@Ya)gE5n3tF9YWnJp?6yn*DlG)f delta 16 XcmX@Ya)gE5n3tF9Y{BA^(u(AfBardAW}1{=R%9oqzB65{#Yr|)&_ ztPBuUdL*CkJil|k^SF;*Gd}vJx=)e3gez8B$JdJH_eaV1OI`|=fum%1V zet0#ThYjclJ%&JY2ZdlGnJEzUT{<#TV(X{KZDWlF%r+8TPGzzSOY<3@&o>y0uVhm( zzmFaAMf{-{8({tXj{#p~z#n2*c9``K`@>s(Ly?frUn+G>9zlV>*@4_F$ zvv35SC^>xHP-laMxYy=_U%~2utR%Lw)L5_YGb+E+$p>m7I!e!1jep10yO zZgUh)jW=;r3vRP3YM0ZgW64Y=m9{kDwl)Plms&|@l4K`t^C~#epySEKuitr_2)1CgZb<$>dUYA-ig{;kE%}L!pzh-p1e`;IH7z@J09}{1RM*`{5|G zL6h~5*4xP7A6mH<3dd{?`8rmX7EUMA86>6Ig79`3uh`#6B6ORK7VWp05zZ^)*4f`^ zQnQH1?M8(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*4{KB8JhdglJt2%Z;wti

bjbR*y*NgRs!EUJquP{0E&6I`Z-1uV#70;XcwTj7y?o)Y<= inemmCmCC;xCIsiH_cW^WXebmCpMt{;x{zx4fxiGrIq{SL diff --git a/backend/postings/__pycache__/__init__.cpython-36.pyc b/backend/postings/__pycache__/__init__.cpython-36.pyc index 0e233cfdfb43af07eeaef5698628771f1dc9f185..cdaf68fb0a72c09fad2704b11354f05a575d809c 100644 GIT binary patch delta 15 WcmZ3?xR{aMn3tF9YWnJl>~jDibp*ly delta 15 WcmZ3?xR{aMn3tF9Y{BA*>~jDiQUtpI diff --git a/backend/postings/__pycache__/admin.cpython-36.pyc b/backend/postings/__pycache__/admin.cpython-36.pyc index 358d84feee473c5db5129dc8b3b3c0748b204e78..3e6cf9c84a316d00a38a6f776c8270ad303b385a 100644 GIT binary patch delta 16 XcmbQoG>?hhn3tF9YWnJp?Ba|7B{T$9 delta 16 XcmbQoG>?hhn3tF9Y{BAP!m_ZeBH*&WtyDXfYEe8nS&F7d$>o_@lI#70X*qS0?>={5nc_IxQ|oJzKg_l*V%& zMbeKV+*T&U2T}A(87I|>FmRFd2A8pTJmU$I4buOii6-=l{5u+aJ$aFHkx!-~zRoAl zQa%*3mwYnh`E`*kCWB|gr=uqma_M9_$V!p($yt1U%~Lj6WO*@5r}?A`_IR-r6eFc3 zr>k8<$vYry@;1hXeINi3o0+TuKpgPyjTRy&S3a_5UNxEh#s~v&E#@#6d)hVcf$uOM z05+w4%3sd-t6Shkxo{Z2h|8q7{Z+}r!fW;Z+WF&Mw6WjI(g?}p1s_8S;OJeS&k;UpW;T#U)6y z6BU(3ACCfH9Tn42I)?OLq^N$81ME@HeA~TE-`s)oQ&>78YpUXPLGsRZr0>&)_dwRy z0W`Gz4K=-ii%seMD6$Kl=b2c&vw`cbGxpogkX_k1iPPmcBU*vumzx0g;`13!Q8w2N zO7f1on+Cm)m0fptbIwe-@3IEmx1?Q-hP}Sm>0TXf;@ZUe|0Qs*h|B3^5yhzNZDdFA zE%X;_$nw3RevVB&Jlj$r%}%f;6n)xq3bGq)HIl15DP9$NJ(=7)`g%G6416m#!#rR% zfN^AZo5Ol4{f(;t2~8oGRJ6kN&S3tTYhB!@k zagXf2ON8o8d<+sQ)6vGXpa$6s*%w%NfTx-bdQks;UC_#?=Sz=W#pyIVW@pv3vrgzk ur{=txAFAC{69_6TL6ED%`|gwOH`SNxTb(W?Gy?O`I_w;}-A32yI{yJQD8_mK delta 305 zcmey*zllZJn3tF9Y{BB_NJa*R#|%h-1;};);$o$V%8G0$EWr$#tP?k=GP+H^%_wEa zlERq6)XNyfmdcz3W3vO<94XArj8U9OqFfNIlMk>-%HQJ3O{|E|NzF?y$*AH>Ni0cK zC@4+J$t=!DP4Uy@o-D~|5*)=}nwMFYT2!1_QW>9@n45ZwqqI1+2+U$F$t=l9y~XPS z)ESbQo9dRCnv)U*HYgr$&@J}l{JfIXypoj+MSMUH6!A@tVT={y0x~%mdBBj1v4|PS o_0wdTJb_(S1ELD76h!a?iCY{tx%nxjIjMHQaA7EB0unsT0O$rykpKVy diff --git a/backend/postings/api/__pycache__/__init__.cpython-36.pyc b/backend/postings/api/__pycache__/__init__.cpython-36.pyc index 9bff9423439f962450b8b708cf9a9b1684f422c9..bcfb9f65a1e1db74f684c3598b6db084a0fb3e3f 100644 GIT binary patch delta 15 WcmZ3^xSWyQn3tF9YWnJl>*OI delta 15 WcmZ3^xSWyQn3tF9Y{BA*>6MzN)E1T$!IP8MM_XJ;!) zEXmAEpX|k0#U{kSz)&PK`4nTNArm7TbCC#;@2AO9!~+uN1rdB80wi1nQ441YPcC7K L6~GXD$Rq^-IC~sN delta 157 zcmZo>`_0N}%*)GlwqS8|?nKTjjBFF{sR*UBMX{zZrm&JHhs~o2Q diff --git a/backend/postings/api/__pycache__/urls.cpython-36.pyc b/backend/postings/api/__pycache__/urls.cpython-36.pyc index 2991bc1301215b7915280131581f46e3e7271709..eb6b6972e73f80b9916a1038b345517ed4fc382c 100644 GIT binary patch delta 16 XcmeBW?qy~-=H=zOn!b7?dmAGFBrpV} delta 16 XcmeBW?qy~-=H=x&Td;T|dmAGFBnAYY diff --git a/backend/postings/api/__pycache__/views.cpython-36.pyc b/backend/postings/api/__pycache__/views.cpython-36.pyc index f7b96d3ad79f0c4d8e994e333ead3a33ba909ebd..595466e4a78e632c16c8d6d025bf2ef078b64d68 100644 GIT binary patch delta 16 XcmdnUy^)*Un3tF9YWnJp?5kJ-DU<~z delta 16 XcmdnUy^)*Un3tF9Y{BATk delta 72 zcmaFQ@}7m=n3tF9Y{BA*?8g~zO+0^;O@x7gp-5!%EXK7O5GI%pB1D12Ee@O9{FKt1 PR6AxMub2r)@Gt`a^+6Fg diff --git a/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc b/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc index fb98ec203e36a3575ffe20282fa7f3ddec1340a4..7295b5f036dc6bc79b51ed728f9e561ec2ef3cb3 100644 GIT binary patch delta 72 zcmbQkI)|0rn3tF9YWnJl>~|P%O?+~TO@e`ep-5u#5ylM~5GI%pA|!#tEe@O9{FKt1 PR6AxMub2r)2rvTx;z$u9 delta 72 zcmbQkI)|0rn3tF9Y{BA*>~|QWCO)~vCeFaXP$WM22;&9~2ouZ)5fVV+7Kcr4eoARh OsvR?sSIh(?1egKCvk;X4 diff --git a/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc b/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc index a21ad51f9c68d203eb2a3bdee02aa93dd9dd33d7..722cbe54a93f683fe595d67d212b772e38f3111c 100644 GIT binary patch delta 15 WcmZ3-xQ>zCn3tF9YWnJl?8^Znv;^Y- delta 15 WcmZ3-xQ>zCn3tF9Y{BA*?8^Znkp$cT diff --git a/backend/postings/models.py b/backend/postings/models.py index bc1038a..2384882 100644 --- a/backend/postings/models.py +++ b/backend/postings/models.py @@ -48,6 +48,7 @@ class Course(RateableEntity): class UniversityReview(models.Model): university_name = models.CharField(max_length=200) username = models.CharField(max_length=200) + rating = models.IntegerField(default=1) title = models.CharField(max_length=200) date_published = models.DateTimeField('date published') content = models.CharField(max_length=200)