Serialize Django ORM models format in DRF

15 views
Skip to first unread message

gthie...@googlemail.com

unread,
Jan 17, 2016, 9:30:14 AM1/17/16
to Django REST framework
Beneath the serialized data of a specific model I want to append additional information about the ORM model itself in my output.
I know this info is in the _meta attribute of a model. Is there something implemented in DRF I can use to accomplish this?

Tom Christie

unread,
Jan 18, 2016, 5:13:00 AM1/18/16
to Django REST framework
> Is there something implemented in DRF I can use to accomplish this

Nope - you'll need to build this yourself or see if there's any third party party packages that do something similar.

Reply all
Reply to author
Forward
0 new messages