marketplace/services/marketplace.py
def post_sell_stock(request: object) -> object:
        """Refreshing the page after purchase."""
        return JsonResponse({
            'message': MarketPlaceHandler.sell_stock(request),
            'template': render_to_string(
                request=request, template_name='marketplace/profile.html',
                context={'user': request.user, 'mystocks':
                            MarketPlaceHandler.get_my_stocks(request.user)})})
Refreshing the page after purchase.
Refreshing the page after purchase.
Refreshing the page after purchase .
def post_sell_stock(request: object) -> object:
        return JsonResponse({
            'message': MarketPlaceHandler.sell_stock(request),
            'template': render_to_string(
                request=request, template_name='marketplace/profile.html',
                context={'user': request.user, 'mystocks':
                            MarketPlaceHandler.get_my_stocks(request.user)})})
def post_sell_stock ( request : object ) -> object : return JsonResponse ( { 'message' : MarketPlaceHandler . sell_stock ( request ) , 'template' : render_to_string ( request = request , template_name = 'marketplace/profile.html' , context = { 'user' : request . user , 'mystocks' : MarketPlaceHandler . get_my_stocks ( request . user ) } ) } )
Refreshing the page after purchase.
Refreshing the page after purchase .
"""Refreshing the page after purchase."""
request
object