From 8af3788b7f4a917df5d96c74210d44674b19ed66 Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Fri, 10 Jan 2020 01:50:38 -0800 Subject: [PATCH] wipe profile when done with confirmation --- sales/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sales/tasks.py b/sales/tasks.py index 112123a..88bae2d 100644 --- a/sales/tasks.py +++ b/sales/tasks.py @@ -81,6 +81,8 @@ def notify_buyer_of_shipment_confirmation(): if sent == 1: sale.buyer_notified_of_shipment = True sale.save() + bidder_profile = UserShippingAddress.objects.get(user=sale.bid.bidder) + bidder_profile.delete() return True else: return False