mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Tweak to work with serializer performance improvement
This commit is contained in:
parent
774d687a31
commit
b0bad35ef0
|
@ -327,7 +327,7 @@ class BrowsableAPIRenderer(BaseRenderer):
|
|||
}
|
||||
|
||||
fields = {}
|
||||
for k, v in serializer.get_fields(True).items():
|
||||
for k, v in serializer.get_fields().items():
|
||||
if getattr(v, 'read_only', True):
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user