update admin

This commit is contained in:
2025-03-04 21:48:57 +08:00
parent 8c849f132d
commit 292ae20a10
5 changed files with 33 additions and 7 deletions

View File

@@ -2,5 +2,6 @@ from django.apps import AppConfig
class TutorialConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'tutorial'
default_auto_field = "django.db.models.BigAutoField"
name = "tutorial"
verbose_name = "教程"

View File

@@ -0,0 +1,17 @@
# Generated by Django 5.1.6 on 2025-03-04 13:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tutorial', '0002_alter_tutorial_display'),
]
operations = [
migrations.AlterModelOptions(
name='tutorial',
options={'verbose_name': '教程', 'verbose_name_plural': '教程'},
),
]

View File

@@ -10,3 +10,7 @@ class Tutorial(TimeStampedModel):
def __str__(self):
return self.title
class Meta:
verbose_name = "教程"
verbose_name_plural = verbose_name