update admin
This commit is contained in:
@@ -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 = "教程"
|
||||
|
||||
17
tutorial/migrations/0003_alter_tutorial_options.py
Normal file
17
tutorial/migrations/0003_alter_tutorial_options.py
Normal 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': '教程'},
|
||||
),
|
||||
]
|
||||
@@ -10,3 +10,7 @@ class Tutorial(TimeStampedModel):
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
class Meta:
|
||||
verbose_name = "教程"
|
||||
verbose_name_plural = verbose_name
|
||||
|
||||
Reference in New Issue
Block a user