diff options
| author | Tom Christie | 2014-09-12 12:10:22 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-09-12 12:10:22 +0100 |
| commit | 79715f01f8c34fdd55c2291b6b21d09fa3a8153e (patch) | |
| tree | acc699e6ebf81957a57b4fc9807ee5ce2084cf8b /tests/test_pagination.py | |
| parent | 22af49bf8ffc73afc9b638f1b9cd2e909c6c89a8 (diff) | |
| download | django-rest-framework-79715f01f8c34fdd55c2291b6b21d09fa3a8153e.tar.bz2 | |
Coerce dates etc to ISO_8601 in seralizer, by default.
Diffstat (limited to 'tests/test_pagination.py')
| -rw-r--r-- | tests/test_pagination.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py index a7f8e691..1fd9cf9c 100644 --- a/tests/test_pagination.py +++ b/tests/test_pagination.py @@ -135,7 +135,7 @@ class IntegrationTestPaginationAndFiltering(TestCase): self.objects = FilterableItem.objects self.data = [ - {'id': obj.id, 'text': obj.text, 'decimal': str(obj.decimal), 'date': obj.date} + {'id': obj.id, 'text': obj.text, 'decimal': str(obj.decimal), 'date': obj.date.isoformat()} for obj in self.objects.all() ] |
