diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index 6d00c4c5c..45cdbbbba 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],