Skip to content

Commit

Permalink
remove unnecessary check version, and use new way to get datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
ebertti committed Aug 28, 2024
1 parent 3864403 commit ae967de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions easy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
from test_app.admin import PollAdmin
from test_app.models import Question, Poll, Tag

if django.VERSION < (5, 0):
from django.utils.datetime_safe import datetime
else:
from django.utils.timezone import datetime

from django.utils.timezone import datetime

class TestSimpleAdminField(test.TestCase):

Expand Down

0 comments on commit ae967de

Please sign in to comment.