Order errors by descending id

Usually it is the latest errors that are interesting for the user.
This commit is contained in:
Cédric Krier committed 2024-09-25 09:56:50 +02:00
1 parent 348ea5c5bb
commit a091c2b8fc
1 file changed
+1
+1
View File
@@ -88,6 +88,7 @@ class Error(Workflow, ModelView, ModelSQL):
table,
(table.state, Index.Equality(cardinality='low')),
where=table.state.in_(['open', 'processing'])))
cls._order = [('id', 'DESC')]
cls._transitions |= {
('open', 'processing'),
('processing', 'solved'),