Ensure sequence_ordered is ASC
issue10299 review334181002
This commit is contained in:
1 parent
23658d9e06
commit
22370bebaf
1 file changed
+1
@@ -9,6 +9,7 @@ def sequence_ordered(
|
||||
field_label=lazy_gettext('ir.msg_sequence'),
|
||||
order='ASC NULLS FIRST'):
|
||||
"Returns a mixin to order the model by order fields"
|
||||
assert order.startswith('ASC')
|
||||
|
||||
class SequenceOrderedMixin(object):
|
||||
"Mixin to order model by a sequence field"
|
||||
|
||||
Reference in new issue
Block a user