mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed a typo from the refactoring in [8455]. With bonus test, too. Thanks, vung.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
38362a1276
commit
51836756d0
2 changed files with 7 additions and 1 deletions
|
|
@ -901,6 +901,12 @@ Pickling of DateQuerySets used to fail
|
|||
>>> qs = Item.objects.dates('created', 'month')
|
||||
>>> _ = pickle.loads(pickle.dumps(qs))
|
||||
|
||||
Bug #8683 -- raise proper error when a DateQuerySet gets passed a wrong type of field
|
||||
>>> Item.objects.dates('name', 'month')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
AssertionError: 'name' isn't a DateField.
|
||||
|
||||
Bug #8597: regression tests for case-insensitive comparisons
|
||||
>>> _ = Item.objects.create(name="a_b", created=datetime.datetime.now(), creator=a2, note=n1)
|
||||
>>> _ = Item.objects.create(name="x%y", created=datetime.datetime.now(), creator=a2, note=n1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue