mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #25774 -- Refactor datetime expressions into public API
This commit is contained in:
parent
77b73e79a4
commit
2a4af0ea43
15 changed files with 1429 additions and 225 deletions
|
@ -1312,7 +1312,7 @@ class Queries3Tests(BaseQuerysetTest):
|
|||
def test_ticket8683(self):
|
||||
# An error should be raised when QuerySet.datetimes() is passed the
|
||||
# wrong type of field.
|
||||
with self.assertRaisesMessage(AssertionError, "'name' isn't a DateTimeField."):
|
||||
with self.assertRaisesMessage(AssertionError, "'name' isn't a DateField or DateTimeField."):
|
||||
Item.objects.datetimes('name', 'month')
|
||||
|
||||
def test_ticket22023(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue