i think you mean this fields = "__all__". This mean you are specifying all 
the fields already declared in the model

On Monday, August 8, 2016 at 4:52:50 PM UTC+1, Pam Suebvisai wrote:
>
> Hi,
>
> Not sure if this has been asked before, but is there an easy way to extend 
> the fields of a ModelSerializer without having to list out all the model 
> fields? What I'm trying to achieve is adding the properties of the model 
> class to the serializer using the fields attribute.
>
> Thanks.
>

-- 
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