Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_only_fields in serializers.py #28

Open
seanlook opened this issue Jan 12, 2017 · 1 comment
Open

read_only_fields in serializers.py #28

seanlook opened this issue Jan 12, 2017 · 1 comment

Comments

@seanlook
Copy link

我看到代码里有许多地方的 序列化类的Meta里,有 read_only_fields,但我用在自己的类里面,没有效果。

我想的是在 list_display_fields 的字段,到update页面之后,只读的是灰掉不可编辑,而不是消失,请问需要哪些改动呢

@lyhapple
Copy link
Owner

没太明白你的需求; 按我目前的理解,我想可能是需要把字段从 read_only_fields 里移出来。

另外,这个项目我现在没去更新它,是因为我没有很好的应用场景,欢迎你提一些需求,让我把它完善起来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants