From add219ccf824635b7222514c72479bd5abc6ee25 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Sat, 14 Mar 2015 22:42:48 +0100 Subject: [PATCH] Clean up gitignore, minor fix admin, update README --- .gitignore | 2 ++ README.md | 8 +++++++- seminar/admin.py | 4 ++-- seminar/management/commands/.testdata.py.swp | Bin 16384 -> 0 bytes seminar/models.py | 4 ---- 5 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 seminar/management/commands/.testdata.py.swp diff --git a/.gitignore b/.gitignore index 7e1a3211..1131ac78 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,9 @@ local/ share/ virtualenv/ pip-selfcheck.json +db-local.sqlite3* /static /media *.pyc +*.swp diff --git a/README.md b/README.md index 87f51b71..a8f3bdcb 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,14 @@ When working with the code, always use the binaries in `./bin/`, such as `bin/pip`, `bin/python`, ... never the global python, pip, ... Use `make` and `./manage.py` for most things. -Use git. +Use git :-) +Quickstart +---------- + + make + ./manage.py testdata + make run Make commands ------------- diff --git a/seminar/admin.py b/seminar/admin.py index aadf7562..2fe2c4ae 100644 --- a/seminar/admin.py +++ b/seminar/admin.py @@ -120,13 +120,13 @@ class ProblemAdmin(admin.ModelAdmin): form = ProblemAdminForm # readonly_fields = ['autor'] fieldsets = [ - (None, {'fields': ['nazev', 'typ', 'stav', 'autor']}), + (None, {'fields': ['nazev', 'typ', 'stav', 'autor', 'body']}), (u'Vydání', {'fields': ['cislo_zadani', 'kod', 'cislo_reseni', 'opravovatel']}), (u'Texty', {'fields': ['text_problemu', 'text_problemu_org']}), ] list_display = ['nazev', 'typ', 'stav', 'autor', 'kod', 'opravovatel'] list_filter = ['typ', 'stav', 'autor', 'opravovatel'] - search_fields = ['nazev', 'autor', 'kod', 'text_problemu_org', 'text_problemu'] + search_fields = ['nazev', 'kod', 'text_problemu_org', 'text_problemu'] inlines = [ReseniInline] admin.site.register(Problem, ProblemAdmin) diff --git a/seminar/management/commands/.testdata.py.swp b/seminar/management/commands/.testdata.py.swp deleted file mode 100644 index b6a2d787c34dbf8aa0e5837c380a385c2a65302a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeHOO>7)V6>gU09|Ky1gmOTIEvv`LxIHs=;!VgbjP0<=I&r+Q9g)cWE>c!F6^Ssic*G5V_t6@Z zgknH3a3lk9v^n|oh&J77HmH1T^potPPpus(sxlP=iUGxdVn8vV7*Gr-1{4E|fww0E zk^hADWen|!YZ$F@EzX84td<%FH zm;v5=Kk5QM0=^5p1bhV;0q(vJdz-+k@6|K|m;_D$Z@ov;ehu6MP5|G)`Gy*x10Mta z`7TZS0q_d&65s$gfJxvVPioqCfD^#Ku@LeW@BsKe@O9wxz#p)H(gpqw9{&aqpRW<8 zkL|~f`)$gA1tPSW?XiG+TcQ?tmVrCV_M%#&&Sobj&S~0l)${x?;(gX;p=&G$vgZib zSXu2{@80Sxbe3+`S+wg9mag7h?yg6g3%ag%fqQBQ4Sz1vTGB(&KxAIvMK=vFq-#{hvB=o3rt7ay-=8IID%?3+tx6 zQD=1H+Zz-0W4llpj_lnQW)vD`Akdo{k0a2Uj%lzi=*=;j~y2%z4rrEHA z$g?+&)=lQ}OU43IGq6u?hWu)8qDl5ln@tawVQ_7ItTQ*iaN)DhUcB_&;^iw#SC^l^ zwz9f*{c|^N-qMF!8)GtR}r3IeKbGp6v=otFm7|G36l)r8uK)Kqrz4oP0!vT zx-ue27DhA4XgIwSyWRe7LRfNcmbp4|=P z4k=})*wb~^oM0(&r&x=fC!@fzgcAz3Bt0=SrnEQzMbl@f>4EBGMrb{J=3vHD+bKv6 zn#>HL;l(cwR8M6GpP89DJ2R+cjM{Ygpq_~?jl&G^k9@W1JM$rM&mtacZUT zOrB73gjQqF3DTj9!V8Al%c7=>!+NQ`F2*o{xBn{aL7vgpR~E@Mq1o0O%@&)UK`M3- z>D#fs>_j{J_gNEJNq|SzN+2u`c?b7*VtAKcxW}VaUq$5Mee#4<^Zcz`^K7HR8jX_X zi%#5=q%!CetS@5;fw z$E3A2sCB`S@ivs6E-76IlB~z4vpJ}9G1$MKShuWn8G(CfpkqlOse~Gu1{mD;g=f`d z;RF;Tq!HqLYOR{NX$N7{^|&kW?4i10(&<$0*n2~=5LgREPzj;k72B1+8K zb)_W``3~8#U0(*#QFRVQHUsHmI+>hMW|@4_OvreM7jYtJiB0B6ZguInvh8hk$t;+S zI-7{3hfO6z9TqFPV_U(6X_f4`cmi01${$Hn#CVH zb^_)pDqWacdzQ7^jEG32i1=+do+G-R4GVlrD7050C^esOJbb!wQp9Y=*+Q4~$+B^rSpJG5UpcqgL zC6Lk%}vO30a@C!x0_5MkBF8AlbOZ@^zZHPAOV|PHwQ( zL@LwVbPFQAPj){Nk!)Kk6G_L9)rn%wB<}*>iDK?xzlU~2XpMP@Wqh%NVWmr4S>4#A61uooB#j- diff --git a/seminar/models.py b/seminar/models.py index 42ce27e5..dc393344 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -13,10 +13,6 @@ from django.utils.encoding import force_unicode from django_countries.fields import CountryField from solo.models import SingletonModel -from ckeditor.fields import RichTextField -from redactor.fields import RedactorField - - # # Mělo by být částečně vytaženo z Aesopa # viz https://ovvp.mff.cuni.cz/wiki/aesop/export-skol.