mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Modified custom_methods test to use date() instead of datetime()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e0c3dd3318
commit
a9331211c8
@ -54,10 +54,10 @@ class Article(meta.Model):
|
||||
|
||||
API_TESTS = """
|
||||
# Create a couple of Articles.
|
||||
>>> from datetime import datetime
|
||||
>>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=datetime(2005, 7, 27))
|
||||
>>> from datetime import date
|
||||
>>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=date(2005, 7, 27))
|
||||
>>> a.save()
|
||||
>>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=datetime(2005, 7, 27))
|
||||
>>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=date(2005, 7, 27))
|
||||
>>> b.save()
|
||||
|
||||
# Test the custom methods.
|
||||
|
Loading…
Reference in New Issue
Block a user