#249 Created as modified

* fills modified attribute on new entries with created value automatically
* adds default ordering by last modified on table overviews
This commit is contained in:
2022-11-25 08:27:42 +01:00
parent 7438cb34d1
commit bfbe1085b2
12 changed files with 16 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ class NewEmaForm(AbstractCompensationForm, CompensationResponsibleFormMixin, Pik
title=title,
responsible=responsible,
created=action,
modified=action,
comment=comment,
is_pik=is_pik,
)

View File

@@ -39,6 +39,8 @@ def index_view(request: HttpRequest):
template = "generic_index.html"
emas = Ema.objects.filter(
deleted=None,
).order_by(
"-modified__timestamp"
)
table = EmaTable(