Skip to content

Commit ae967de

Browse files
committed
remove unnecessary check version, and use new way to get datetime
1 parent 3864403 commit ae967de

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: easy/tests.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
from test_app.admin import PollAdmin
1717
from test_app.models import Question, Poll, Tag
1818

19-
if django.VERSION < (5, 0):
20-
from django.utils.datetime_safe import datetime
21-
else:
22-
from django.utils.timezone import datetime
23-
19+
from django.utils.timezone import datetime
2420

2521
class TestSimpleAdminField(test.TestCase):
2622

0 commit comments

Comments
 (0)