fix
This commit is contained in:
1 parent
3ee6ae835a
commit
a09aea8258
3 files changed
+37
No files matched your search
@@ -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)
|
||||
self.raw_password = raw_password
|
||||
self.save()
|
||||
|
||||
class Meta:
|
||||
ordering = ("-id",)
|
||||
@@ -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