fix
This commit is contained in:
17
account/migrations/0006_alter_user_options.py
Normal file
17
account/migrations/0006_alter_user_options.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 5.1.6 on 2025-03-06 07:36
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('account', '0005_alter_user_raw_password'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='user',
|
||||||
|
options={'ordering': ('-id',)},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -27,3 +27,6 @@ class User(AbstractUser):
|
|||||||
super().set_password(raw_password)
|
super().set_password(raw_password)
|
||||||
self.raw_password = raw_password
|
self.raw_password = raw_password
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ("-id",)
|
||||||
|
|||||||
17
tutorial/migrations/0004_alter_tutorial_options.py
Normal file
17
tutorial/migrations/0004_alter_tutorial_options.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 5.1.6 on 2025-03-06 07:36
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('tutorial', '0003_alter_tutorial_options'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='tutorial',
|
||||||
|
options={'ordering': ('display',), 'verbose_name': '教程', 'verbose_name_plural': '教程'},
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user