admin: pohadka nema timestamp, priloha reseni ma misto timestampu
vytvoreno
This commit is contained in:
parent
f974007cb2
commit
91e88a31fb
2 changed files with 4 additions and 5 deletions
|
@ -101,8 +101,8 @@ class CisloInline(admin.TabularInline):
|
|||
|
||||
class PrilohaReseniInline(admin.StackedInline):
|
||||
model = PrilohaReseni
|
||||
fields = ['timestamp', 'soubor', 'poznamka']
|
||||
readonly_fields = ['timestamp']
|
||||
fields = ['vytvoreno', 'soubor', 'poznamka']
|
||||
readonly_fields = ['vytvoreno']
|
||||
formfield_overrides = {
|
||||
models.TextField: {'widget': forms.TextInput},
|
||||
}
|
||||
|
@ -381,8 +381,7 @@ class PohadkaAdmin(VersionAdmin):
|
|||
'get_rocnik',
|
||||
'get_kod_ulohy',
|
||||
'uloha',
|
||||
'autor',
|
||||
'timestamp'
|
||||
'autor'
|
||||
]
|
||||
|
||||
get_form = get_form_predvypln_autora
|
||||
|
|
|
@ -850,7 +850,7 @@ class PrilohaReseni(SeminarModelBase):
|
|||
db_table = 'seminar_priloha_reseni'
|
||||
verbose_name = 'Příloha řešení'
|
||||
verbose_name_plural = 'Přílohy řešení'
|
||||
ordering = ['reseni', 'timestamp']
|
||||
ordering = ['reseni', 'vytvoreno']
|
||||
|
||||
# Interní ID
|
||||
id = models.AutoField(primary_key = True)
|
||||
|
|
Loading…
Reference in a new issue