Ignore many=True serializer on POST during html form rendering

This commit is contained in:
Alejandro R. Sedeño 2015-07-10 18:44:20 -04:00
parent 061081c732
commit f5fedf075a

View File

@ -448,6 +448,8 @@ class BrowsableAPIRenderer(BaseRenderer):
instance = None
else:
instance = None
if method == 'POST':
serializer = None
# If this is valid serializer data, and the form is for the same
# HTTP method as was used in the request then use the existing