Django model default sort order using related table field

后端 未结 6 1269
半阙折子戏
半阙折子戏 2020-12-17 08:26

Is it possible to set the default sort order for a model to a field from a related model (rather than the integer key) i.e. something that yields a SQL order by clause with

6条回答
提交回复
热议问题