From 083ac6d3bdfa28c6ffe9796d0da35fba7c1bb56b Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 4 Mar 2025 22:56:48 +0800 Subject: [PATCH] update --- .github/workflows/depley.yaml | 2 +- tutorial/models.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/depley.yaml b/.github/workflows/depley.yaml index 392a119..9b3309b 100644 --- a/.github/workflows/depley.yaml +++ b/.github/workflows/depley.yaml @@ -16,7 +16,7 @@ jobs: with: host: ${{ secrets.HOST }} username: root - key: ${{ secrets.Key }} + key: ${{ secrets.KEY }} script: | cd ~/WebPreview/api git pull diff --git a/tutorial/models.py b/tutorial/models.py index a2770ca..00d7d00 100644 --- a/tutorial/models.py +++ b/tutorial/models.py @@ -10,7 +10,8 @@ class Tutorial(TimeStampedModel): def __str__(self): return self.title - + class Meta: + ordering = ("display",) verbose_name = "教程" verbose_name_plural = verbose_name