def editOffer(request):
    offer_id = int(request.POST['offer_id'])
    offer = Offer.objects.get(pk=offer_id)
    old_json = offer.to_json()
    offer = issue_services.change_existing_offer(offer_id, request.POST, request.user)
    ActionLog.log_change_offer(offer=offer, user=request.user, old_json=old_json)
    return redirect(offer.issue.get_view_link())
예제 #2
0
def editOffer(request):
    offer_id = int(request.POST['offer_id'])
    offer = issue_services.change_existing_offer(offer_id, request.POST, request.user)
    return redirect(offer.get_view_link())
def editOffer(request):
    offer_id = int(request.POST['offer_id'])
    offer = issue_services.change_existing_offer(offer_id, request.POST,
                                                 request.user)
    return redirect(offer.get_view_link())