From f5fedf075a9532f87602e8505683c955d1c3c282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20R=2E=20Sede=C3=B1o?= Date: Fri, 10 Jul 2015 18:44:20 -0400 Subject: [PATCH] Ignore many=True serializer on POST during html form rendering --- rest_framework/renderers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py index 6e1370b72..5d705f22c 100644 --- a/rest_framework/renderers.py +++ b/rest_framework/renderers.py @@ -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