This commit is contained in:
shamoon 2025-04-04 08:08:07 -07:00
parent 1a5988ccfb
commit 6ca032b408
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
# Generated by Django 5.1.7 on 2025-04-04 01:08 # Generated by Django 5.1.7 on 2025-04-04 01:08
import django import datetime
from django.db import migrations from django.db import migrations
from django.db import models from django.db import models
@ -17,7 +18,7 @@ class Migration(migrations.Migration):
name="created", name="created",
field=models.DateField( field=models.DateField(
db_index=True, db_index=True,
default=django.utils.timezone.now, default=datetime.datetime.today,
verbose_name="created", verbose_name="created",
), ),
), ),

View File

@ -1,3 +1,4 @@
import datetime
from pathlib import Path from pathlib import Path
from typing import Final from typing import Final
@ -214,7 +215,7 @@ class Document(SoftDeleteModel, ModelWithOwner):
created = models.DateField( created = models.DateField(
_("created"), _("created"),
default=timezone.now, default=datetime.datetime.today,
db_index=True, db_index=True,
) )