mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-27 10:59:27 -05:00
Today
This commit is contained in:
parent
1a5988ccfb
commit
6ca032b408
@ -1,7 +1,8 @@
|
||||
# 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 models
|
||||
|
||||
@ -17,7 +18,7 @@ class Migration(migrations.Migration):
|
||||
name="created",
|
||||
field=models.DateField(
|
||||
db_index=True,
|
||||
default=django.utils.timezone.now,
|
||||
default=datetime.datetime.today,
|
||||
verbose_name="created",
|
||||
),
|
||||
),
|
||||
|
@ -1,3 +1,4 @@
|
||||
import datetime
|
||||
from pathlib import Path
|
||||
from typing import Final
|
||||
|
||||
@ -214,7 +215,7 @@ class Document(SoftDeleteModel, ModelWithOwner):
|
||||
|
||||
created = models.DateField(
|
||||
_("created"),
|
||||
default=timezone.now,
|
||||
default=datetime.datetime.today,
|
||||
db_index=True,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user