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