mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-29 11:09: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
|
# 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",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user