read_only_fields => readonly_fields #7741
Replies: 2 comments
-
On the one hand, consistency with Django is a +1, on the other, serializer fields have a That said, I'm indifferent to the change, and if we did want to do this, we could copy Speaking of, @carltongibson do you think it would be worth adding |
Beta Was this translation helpful? Give feedback.
-
I'm in favour of the internal consistency here. |
Beta Was this translation helpful? Give feedback.
-
Suggested Minor Improvement:
Inside serializers, change
read_only_fields
toreadonly_fields
to match the Django standard (e.g., when creatingadmin.py
code).Beta Was this translation helpful? Give feedback.
All reactions