Ticket #8416: django_sqlite_test_case.diff
File django_sqlite_test_case.diff, 576 bytes (added by , 16 years ago) |
---|
-
tests/modeltests/lookup/models.py
79 79 # Date and date/time lookups can also be done with strings. 80 80 >>> Article.objects.filter(pub_date__exact='2005-07-27 00:00:00').count() 81 81 3L 82 >>> Article.objects.filter(pub_date__year='2005', pub_date__month='7', pub_date__day='28') 83 [<Article: Article 4>] 82 84 83 85 # in_bulk() takes a list of IDs and returns a dictionary mapping IDs 84 86 # to objects.