From 2b8066381b20769dd7fac66692a4fdd8780135e4 Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Thu, 13 Jul 2023 14:20:08 -0400 Subject: [PATCH] serialize brand info for preprint provider (#10410) --- api/providers/serializers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/providers/serializers.py b/api/providers/serializers.py index 1e281467bc1..46f98112b97 100644 --- a/api/providers/serializers.py +++ b/api/providers/serializers.py @@ -237,6 +237,11 @@ class Meta: related_view_kwargs={'provider_id': '<_id>'}, ) + brand = RelationshipField( + related_view='brands:brand-detail', + related_view_kwargs={'brand_id': ''}, + ) + def get_preprints_url(self, obj): return absolute_reverse( 'providers:preprint-providers:preprints-list', kwargs={