mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed bug in basic.py model unit tests caused by [1511] -- the special-case MySQL thing needs to be at the end of the tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -158,13 +158,6 @@ datetime.datetime(2005, 7, 31, 12, 30, 45) | |||||||
| >>> a8.id | >>> a8.id | ||||||
| 8L | 8L | ||||||
|  |  | ||||||
| # You can manually specify the primary key when creating a new objet |  | ||||||
| >>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45)) |  | ||||||
| >>> a101.save() |  | ||||||
| >>> a101 = articles.get_object(pk=101) |  | ||||||
| >>> a101.headline |  | ||||||
| 'Article 101' |  | ||||||
|  |  | ||||||
| """ | """ | ||||||
|  |  | ||||||
| from django.conf import settings | from django.conf import settings | ||||||
| @@ -189,3 +182,13 @@ if building_docs or settings.DATABASE_ENGINE == 'mysql': | |||||||
| >>> articles.get_object(id__exact=9).pub_date | >>> articles.get_object(id__exact=9).pub_date | ||||||
| datetime.datetime(2005, 7, 31, 12, 30, 45) | datetime.datetime(2005, 7, 31, 12, 30, 45) | ||||||
| """ | """ | ||||||
|  |  | ||||||
|  | API_TESTS += """ | ||||||
|  |  | ||||||
|  | # You can manually specify the primary key when creating a new objet | ||||||
|  | >>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45)) | ||||||
|  | >>> a101.save() | ||||||
|  | >>> a101 = articles.get_object(pk=101) | ||||||
|  | >>> a101.headline | ||||||
|  | 'Article 101' | ||||||
|  | """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user