diff options
| author | Tom Christie | 2012-12-18 18:21:58 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-12-18 18:21:58 +0000 |
| commit | 6693d2d277823c9150077c7c9534b7550dfd192c (patch) | |
| tree | e7f547a95cc152a8a809ab39595c3008d2e16c1e /rest_framework/tests | |
| parent | 8f23b7f2f901751ecb79e98a540d3a8dc83b0d1a (diff) | |
| download | django-rest-framework-6693d2d277823c9150077c7c9534b7550dfd192c.tar.bz2 | |
Fix for pks returning as strings when set in pre_save. Fixes #482. Thanks to @n8agrin for the bug report.
Diffstat (limited to 'rest_framework/tests')
| -rw-r--r-- | rest_framework/tests/generics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/generics.py b/rest_framework/tests/generics.py index 14fa66f9..7c24d84e 100644 --- a/rest_framework/tests/generics.py +++ b/rest_framework/tests/generics.py @@ -175,7 +175,7 @@ class TestInstanceView(TestCase): content = {'text': 'foobar'} request = factory.put('/1', json.dumps(content), content_type='application/json') - response = self.view(request, pk=1).render() + response = self.view(request, pk='1').render() self.assertEquals(response.status_code, status.HTTP_200_OK) self.assertEquals(response.data, {'id': 1, 'text': 'foobar'}) updated = self.objects.get(id=1) |
