Clean up gitignore, minor fix admin, update README
This commit is contained in:
parent
0b88b8022c
commit
add219ccf8
5 changed files with 11 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,9 @@ local/
|
|||
share/
|
||||
virtualenv/
|
||||
pip-selfcheck.json
|
||||
db-local.sqlite3*
|
||||
|
||||
/static
|
||||
/media
|
||||
*.pyc
|
||||
*.swp
|
||||
|
|
|
@ -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
|
||||
-------------
|
||||
|
|
|
@ -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)
|
||||
|
|
Binary file not shown.
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue