aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/pagination.py
diff options
context:
space:
mode:
authorStephan Groß2013-03-01 13:16:00 +0100
committerStephan Groß2013-03-01 13:16:00 +0100
commit876a58e8bf566b9f05a1f6c921660cf3512ae3af (patch)
tree6015664805190668a2213ce90a3918bb36176184 /rest_framework/tests/pagination.py
parent36d5b24b76af2d98efff9e8f414ec36e2a902994 (diff)
downloaddjango-rest-framework-876a58e8bf566b9f05a1f6c921660cf3512ae3af.tar.bz2
Add drf settings + output format + testcases
Diffstat (limited to 'rest_framework/tests/pagination.py')
-rw-r--r--rest_framework/tests/pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/tests/pagination.py b/rest_framework/tests/pagination.py
index b85ce144..c1efd4f5 100644
--- a/rest_framework/tests/pagination.py
+++ b/rest_framework/tests/pagination.py
@@ -112,8 +112,8 @@ class IntegrationTestPaginationAndFiltering(TestCase):
self.objects = FilterableItem.objects
self.data = [
- {'id': obj.id, 'text': obj.text, 'decimal': obj.decimal, 'date': obj.date}
- for obj in self.objects.all()
+ {'id': obj.id, 'text': obj.text, 'decimal': obj.decimal, 'date': obj.date.isoformat()}
+ for obj in self.objects.all()
]
self.view = FilterFieldsRootView.as_view()