def markUnpaid(self): unitId = request.POST['unitId'] forMonth = request.POST['forMonth'] forYear = request.POST['forYear'] Transaction.undo_rent(unitId,forMonth,forYear) return json.dumps('')