mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.8.x] Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.
Backport of 30a3c2f74c from master.
			
			
This commit is contained in:
		| @@ -339,6 +339,11 @@ class WriterTests(TestCase): | ||||
|         self.assertSerializedEqual(FoodManager('a', 'b')) | ||||
|         self.assertSerializedEqual(FoodManager('x', 'y', c=3, d=4)) | ||||
|  | ||||
|  | ||||
|     def test_serialize_timedelta(self): | ||||
|         self.assertSerializedEqual(datetime.timedelta()) | ||||
|         self.assertSerializedEqual(datetime.timedelta(minutes=42)) | ||||
|  | ||||
|     def test_simple_migration(self): | ||||
|         """ | ||||
|         Tests serializing a simple migration. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user