Skip to content

Commit

Permalink
fix: 模型列表根据创建时间倒序
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Mar 26, 2024
1 parent 0a21249 commit d2ef33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/setting/serializers/provider_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def list(self, with_valid):
return [
{'id': str(model.id), 'provider': model.provider, 'name': model.name, 'model_type': model.model_type,
'model_name': model.model_name, 'status': model.status, 'meta': model.meta} for model in
model_query_set.filter(**query_params)]
model_query_set.filter(**query_params).order_by("-create_time")]

class Edit(serializers.Serializer):
user_id = serializers.CharField(required=False, error_messages=ErrMessage.uuid("用户id"))
Expand Down

0 comments on commit d2ef33a

Please sign in to comment.