Possibility to hide hyperlinked fields to only show in browsable API

10 views
Skip to first unread message

Christian Verkerk

unread,
Nov 13, 2020, 5:21:13 PM11/13/20
to Django REST framework
Hi,

I'd like to keep using hyperlinked fields in the browseable API (because it makes it browsable) but don't want the fields returned in the "regular" JSON API as it can cost some additional SQL queries. Is there a way to only have hyperlinked fields show up in the browsable API and *not* in the "regular" API?

Kind regards,

Christian
Reply all
Reply to author
Forward
0 new messages