mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #25382 -- Removed obsolete references to DateQuerySet.
This commit is contained in:
committed by
Tim Graham
parent
fba8655e88
commit
e3720b990a
@@ -751,7 +751,7 @@ class Queries1Tests(BaseQuerysetTest):
|
||||
3
|
||||
)
|
||||
|
||||
# Pickling of DateQuerySets used to fail
|
||||
# Pickling of QuerySets using datetimes() should work.
|
||||
qs = Item.objects.datetimes('created', 'month')
|
||||
pickle.loads(pickle.dumps(qs))
|
||||
|
||||
@@ -1302,8 +1302,8 @@ class Queries3Tests(BaseQuerysetTest):
|
||||
self.assertQuerysetEqual(Valid.objects.all(), [])
|
||||
|
||||
def test_ticket8683(self):
|
||||
# Raise proper error when a DateQuerySet gets passed a wrong type of
|
||||
# field
|
||||
# An error should be raised when QuerySet.datetimes() is passed the
|
||||
# wrong type of field.
|
||||
self.assertRaisesMessage(
|
||||
AssertionError,
|
||||
"'name' isn't a DateTimeField.",
|
||||
|
||||
Reference in New Issue
Block a user