mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +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
|
instance = None
|
||||||
else:
|
else:
|
||||||
instance = None
|
instance = None
|
||||||
|
if method == 'POST':
|
||||||
|
serializer = None
|
||||||
|
|
||||||
# If this is valid serializer data, and the form is for the same
|
# 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
|
# HTTP method as was used in the request then use the existing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user