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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?