read_only_fields not work #8802
Unanswered
samuelchen
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I searched issues and discussions, found that
read_only_fields
not work with explicitly declared field or nested.But my case has no explicitly declared fields, it's directly use UserModel in Meta.
UserModel
is fromget_user_model()
.I can
update
fields inread_only_fields
, such asusername
,is_superuser
and etc.How do I make the read_only_fields read only ?
e.g.
Beta Was this translation helpful? Give feedback.
All reactions