mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #25382 -- Removed obsolete references to DateQuerySet.
This commit is contained in:
parent
fba8655e88
commit
e3720b990a
4 changed files with 17 additions and 23 deletions
|
@ -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.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue