marketplace/services/marketplace.py
def post_display_stocks(request: object) -> object:
        """Displaying stocks on the page."""
        page = request.POST['active_page']
        return JsonResponse({'message': 'ok', 'template': render_to_string(
                request=request, template_name='marketplace/stocks.html',
                context={
                    'stocks': MarketPlaceHandler.get_stocks(page),
                    'stocks_pages': MarketPlaceHandler.get_stocks_pages()})})
Displaying stocks on the page.
Displaying stocks on the page.
Displaying stocks on the page .
def post_display_stocks(request: object) -> object:
        page = request.POST['active_page']
        return JsonResponse({'message': 'ok', 'template': render_to_string(
                request=request, template_name='marketplace/stocks.html',
                context={
                    'stocks': MarketPlaceHandler.get_stocks(page),
                    'stocks_pages': MarketPlaceHandler.get_stocks_pages()})})
def post_display_stocks ( request : object ) -> object : page = request . POST [ 'active_page' ] return JsonResponse ( { 'message' : 'ok' , 'template' : render_to_string ( request = request , template_name = 'marketplace/stocks.html' , context = { 'stocks' : MarketPlaceHandler . get_stocks ( page ) , 'stocks_pages' : MarketPlaceHandler . get_stocks_pages ( ) } ) } )
Displaying stocks on the page.
Displaying stocks on the page .
"""Displaying stocks on the page."""
request
object