diff options
| author | Tom Christie | 2014-09-11 21:48:54 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-09-11 21:48:54 +0100 | 
| commit | 040bfcc09c851bb3dadd60558c78a1f7937e9fbd (patch) | |
| tree | 4af85b2ee317528a080422e5893cc01fae079dcb /tests/test_pagination.py | |
| parent | a7518719917c7ad8e699119b442cfeb568ba1dde (diff) | |
| download | django-rest-framework-040bfcc09c851bb3dadd60558c78a1f7937e9fbd.tar.bz2 | |
NotImplemented stubs for Field, and DecimalField improvements
Diffstat (limited to 'tests/test_pagination.py')
| -rw-r--r-- | tests/test_pagination.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/test_pagination.py b/tests/test_pagination.py index 68983ba2..a7f8e691 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': obj.decimal, 'date': obj.date} +            {'id': obj.id, 'text': obj.text, 'decimal': str(obj.decimal), 'date': obj.date}              for obj in self.objects.all()          ] @@ -381,7 +381,7 @@ class TestMaxPaginateByParam(TestCase):  # Tests for context in pagination serializers -class CustomField(serializers.Field): +class CustomField(serializers.ReadOnlyField):      def to_native(self, value):          if 'view' not in self.context:              raise RuntimeError("context isn't getting passed into custom field") | 
