|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
frostyx commented 4 years ago | ||
praiskup commented 4 years ago Maybe, I don't have strong preference (I intentionally tried to let the default unspecified, since it looked like more natural; and the default is ASC anyways). | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Make sure that we don't override explicit ORDER BY request from
Paginator caller (reverts 3e73f63), and that we
use sane defaults:
- by default order by field: model.id
- if ORDER BY id => use DESC by default
- if ORDER BY name => use ASC by default
- otherwise keep system default ASC/DESC
Fixes: rhbz#1717506
Fixes: PR#791
What about having just
else
here? The only exception that comes to my mind, that we want also haveDESC
, are dates.