hi , guys. i created a article model that has three fields; Id 、title 、content; i created a article ModelSerializer class about the article model。 but sometime i want to only serialize partly fields(example:id、title , in the listview), sometime i want to serialize all of the fields (example: id 、title、content, in the retrieve view) if i only have a ModelSerializer class, what should i do ?
please let me know. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAGVKvXfN%2Bg9DbYsYqBwTeUH%2BUpTHAOyK_te398yZkngRX2p9_g%40mail.gmail.com.
