Loading AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ answer newbie questions, and generally made Django that much better: Maximillian Dornseif <md@hudora.de> mccutchen@gmail.com Meir Kriheli <http://mksoft.co.il/> Michael Hall <mhall1@ualberta.ca> Michael Josephson <http://www.sdjournal.com/> Michael Manfre <mmanfre@gmail.com> michael.mcewan@gmail.com Loading tests/custom_lookups/tests.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ from django.core.exceptions import FieldError from django.db import models from django.db import connection from django.test import TestCase, override_settings from django.utils import timezone from .models import Author, MySQLUnixTimestamp Loading Loading @@ -376,7 +377,7 @@ class DateTimeLookupTests(TestCase): models.PositiveIntegerField.register_lookup(DateTimeTransform) try: ut = MySQLUnixTimestamp.objects.create(timestamp=time.time()) y2k = datetime(2000, 1, 1) y2k = timezone.make_aware(datetime(2000, 1, 1)) self.assertQuerysetEqual( MySQLUnixTimestamp.objects.filter(timestamp__as_datetime__gt=y2k), [ut], lambda x: x) Loading Loading
AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -465,6 +465,7 @@ answer newbie questions, and generally made Django that much better: Maximillian Dornseif <md@hudora.de> mccutchen@gmail.com Meir Kriheli <http://mksoft.co.il/> Michael Hall <mhall1@ualberta.ca> Michael Josephson <http://www.sdjournal.com/> Michael Manfre <mmanfre@gmail.com> michael.mcewan@gmail.com Loading
tests/custom_lookups/tests.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ from django.core.exceptions import FieldError from django.db import models from django.db import connection from django.test import TestCase, override_settings from django.utils import timezone from .models import Author, MySQLUnixTimestamp Loading Loading @@ -376,7 +377,7 @@ class DateTimeLookupTests(TestCase): models.PositiveIntegerField.register_lookup(DateTimeTransform) try: ut = MySQLUnixTimestamp.objects.create(timestamp=time.time()) y2k = datetime(2000, 1, 1) y2k = timezone.make_aware(datetime(2000, 1, 1)) self.assertQuerysetEqual( MySQLUnixTimestamp.objects.filter(timestamp__as_datetime__gt=y2k), [ut], lambda x: x) Loading