Marking Metadata on Serializer Fields?

8 views
Skip to first unread message

Ben Warren

unread,
Nov 12, 2019, 10:27:21 AM11/12/19
to Django REST framework
I am looking to mark metadata on my serializer fields, and exploring ways to do it.  The `Field` class stores the kwargs it was called with in __new__, but only uses those for representation; does it feel like an antipattern to pass kwargs like meta-foo, and write a metadata class to consume those meta options?  Is there a better way of doing this?
Reply all
Reply to author
Forward
0 new messages