Fix failing test.

This commit is contained in:
Marko Tibold 2012-09-08 22:50:54 +02:00
parent 59a0bc55af
commit ef0bf1e775

View File

@ -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],