diff options
| author | Marko Tibold | 2012-09-08 22:50:54 +0200 |
|---|---|---|
| committer | Marko Tibold | 2012-09-08 22:50:54 +0200 |
| commit | ef0bf1e775161578ab16be165d4bdb8003040f6c (patch) | |
| tree | 7bfc9b995da6b8ccae3b004c6ba5b499e2a135b0 /djangorestframework | |
| parent | 59a0bc55af871a538843d1a6dd2442d374bd8b26 (diff) | |
| download | django-rest-framework-ef0bf1e775161578ab16be165d4bdb8003040f6c.tar.bz2 | |
Fix failing test.
Diffstat (limited to 'djangorestframework')
| -rw-r--r-- | djangorestframework/renderers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index 6d00c4c5..45cdbbbb 100644 --- a/djangorestframework/renderers.py +++ b/djangorestframework/renderers.py @@ -234,7 +234,8 @@ class DocumentingTemplateRenderer(BaseRenderer): In the absence on of the Resource having an associated form then provide a form that can be used to submit arbitrary content. """ - + if not hasattr(self.view, 'get_serializer'): # No serializer, no form. + return # We need to map our Fields to Django's Fields. field_mapping = dict([ [FloatField.__name__, forms.FloatField], |
