Order errors by descending id
Usually it is the latest errors that are interesting for the user.
This commit is contained in:
1 parent
348ea5c5bb
commit
a091c2b8fc
1 file changed
+1
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user