Compare commits
No commits in common. "bc9b55085f63dbcda2662b11579a8e2152f845ea" and "355a591608134d43cd31bf2b650370e68167eace" have entirely different histories.
bc9b55085f
...
355a591608
1 changed files with 0 additions and 6 deletions
|
|
@ -144,12 +144,6 @@ class ProblemAdmin(PolymorphicParentModelAdmin):
|
|||
]
|
||||
# Pokud chceme orezavat na aktualni rocnik, musime do modelu pridat odkaz na rocnik. Zatim bere vse.
|
||||
search_fields = ['nazev']
|
||||
list_filter = ['stav']
|
||||
actions = ['vyres_problemy']
|
||||
|
||||
@admin.action(description= 'Označit problémy jako vyřešené')
|
||||
def vyres_problemy(self, req, qs):
|
||||
qs.update(stav=Problem.STAV_VYRESENY)
|
||||
|
||||
|
||||
# V ProblemAdmin to nejde, protoze se to nepropise do deti
|
||||
|
|
|
|||
Loading…
Reference in a new issue