mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +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 = {}
|
fields = {}
|
||||||
for k, v in serializer.get_fields(True).items():
|
for k, v in serializer.get_fields().items():
|
||||||
if getattr(v, 'read_only', True):
|
if getattr(v, 'read_only', True):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user