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