Hi,

We didn’t remove the read_only_fields as it’s pretty common.
However, I would be willing to remove the read_only_fields since the 
extra_kwargs is already there.

Regards,
Xavier Ordoquy,
Linovia.

> Le 17 mars 2017 à 07:01, CocaCola <[email protected]> a écrit :
> 
> in documents..
> 
> The write_only_fields option on ModelSerializer has been moved to 
> PendingDeprecation and replaced with a more generic extra_kwargs
> 
> 
> http://www.django-rest-framework.org/topics/3.0-announcement/#the-extra_kwargs-option
> 
> 
> Why do not you use 'write_only_fields' while using 'read_only_fields'?
> 
> I think it is more intuitive to use the same sentence.('read_only_fields / 
> write_only_fields)
> Why was it abandoned?
> For what reasons?
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to