Add 'name' field to BotProductDetailView response
This commit is contained in:
@@ -467,6 +467,7 @@ class BotProductDetailView(APIView):
|
||||
product = get_object_or_404(ProductModel, pk=pk, show_in_bot=True)
|
||||
|
||||
return Response({
|
||||
'name': product.name,
|
||||
'banner' : product.bot_banner,
|
||||
'link': f'https://heymlz.com/product/{product.slug}'
|
||||
})
|
||||
Reference in New Issue
Block a user