mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Ignore many=True serializer on POST during html form rendering
This commit is contained in:
parent
061081c732
commit
f5fedf075a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user