mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-22 07:48:13 +00:00
Change: treat created as date not datetime (#9793)
This commit is contained in:
1 parent
ce5d4e9c92
commit
1a6f32534c
18 files changed
+228
-128
No files matched your search
@@ -4,7 +4,6 @@ from unittest import mock
|
||||
|
||||
from django.contrib.auth.models import Permission
|
||||
from django.contrib.auth.models import User
|
||||
from django.utils import timezone
|
||||
from rest_framework import status
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
@@ -104,13 +103,13 @@ class TestApiObjects(DirectoriesMixin, APITestCase):
|
||||
Document.objects.create(
|
||||
mime_type="application/pdf",
|
||||
correspondent=self.c1,
|
||||
created=timezone.make_aware(datetime.datetime(2022, 1, 1)),
|
||||
created=datetime.date(2022, 1, 1),
|
||||
checksum="123",
|
||||
)
|
||||
Document.objects.create(
|
||||
mime_type="application/pdf",
|
||||
correspondent=self.c1,
|
||||
created=timezone.make_aware(datetime.datetime(2022, 1, 2)),
|
||||
created=datetime.date(2022, 1, 2),
|
||||
checksum="456",
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user