Skip to content

Commit

Permalink
updated whoosh backend to utilize datetime from the standard library (#…
Browse files Browse the repository at this point in the history
…1937)

Co-authored-by: me <me@gmail.com>
  • Loading branch information
Naggafin and thssuck committed Jan 22, 2024
1 parent 3bc1d4e commit c0b1984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion haystack/backends/whoosh_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import shutil
import threading
import warnings
from datetime import date, datetime

from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.datetime_safe import date, datetime
from django.utils.encoding import force_str

from haystack.backends import (
Expand Down
3 changes: 1 addition & 2 deletions test_haystack/whoosh_tests/test_whoosh_backend.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import unittest
from datetime import timedelta
from datetime import date, datetime, timedelta
from decimal import Decimal

from django.conf import settings
from django.test import TestCase
from django.test.utils import override_settings
from django.utils.datetime_safe import date, datetime
from whoosh.analysis import SpaceSeparatedTokenizer, SubstitutionFilter
from whoosh.fields import BOOLEAN, DATETIME, KEYWORD, NUMERIC, TEXT
from whoosh.qparser import QueryParser
Expand Down

0 comments on commit c0b1984

Please sign in to comment.