summaryrefslogtreecommitdiff
path: root/tests/timezones/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/timezones/tests.py')
-rw-r--r--tests/timezones/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index 4ebd704f23..75c79ecfdd 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -203,7 +203,7 @@ class LegacyDatabaseTests(TestCase):
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40))
- result = Event.objects.all().aggregate(Min("dt"), Max("dt"))
+ result = Event.objects.aggregate(Min("dt"), Max("dt"))
self.assertEqual(
result,
{
@@ -499,7 +499,7 @@ class NewDatabaseTests(TestCase):
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40, tzinfo=EAT))
- result = Event.objects.all().aggregate(Min("dt"), Max("dt"))
+ result = Event.objects.aggregate(Min("dt"), Max("dt"))
self.assertEqual(
result,
{