#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 ad02a62eaf
commit e048d44c95
12 changed files with 16 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ class InterventionAPISerializerV1(AbstractModelAPISerializerV1,
created = create_action
obj.legal = legal
obj.created = created
obj.modified = created
obj.geometry = geometry
obj.responsible = resp
return obj