U 配置默认按Key升序排序

pull/22/head
vapao 2020-01-19 00:12:45 +08:00
parent 27d4de8a23
commit 64e8de109c
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Config(models.Model, ModelMixin):
class Meta:
db_table = 'configs'
ordering = ('-id',)
ordering = ('-key',)
class ConfigHistory(models.Model, ModelMixin):
@ -82,4 +82,4 @@ class ConfigHistory(models.Model, ModelMixin):
class Meta:
db_table = 'config_histories'
ordering = ('-id',)
ordering = ('key',)