|
|
@ -56,7 +56,7 @@ def cancel_sale(request, sale_id):
|
|
|
|
|
|
|
|
|
|
|
|
if sale.payment_received:
|
|
|
|
if sale.payment_received:
|
|
|
|
messages.error(request, "You can't cancel a sale which has already received funds.")
|
|
|
|
messages.error(request, "You can't cancel a sale which has already received funds.")
|
|
|
|
return HttpResponseRedirect(reverse('get_sale', args=[sale.bid.id]))
|
|
|
|
return HttpResponseRedirect(reverse('get_sale', args=[sale.id]))
|
|
|
|
|
|
|
|
|
|
|
|
# Item becomes available
|
|
|
|
# Item becomes available
|
|
|
|
sale.item.available = True
|
|
|
|
sale.item.available = True
|
|
|
|