Skip to content

Commit

Permalink
fix bug for test environnement
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Nov 7, 2023
1 parent 8cfbe2a commit 1563c2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ckeditor.widgets import CKEditorWidget
from django import forms
from django.conf import settings
from django.contrib import admin
from django.contrib.contenttypes.admin import GenericTabularInline
from django.db import models
Expand Down Expand Up @@ -485,7 +486,8 @@ def response_change(self, request, obj: Tender):
if request.POST.get("_validate_tender"):
update_and_send_tender_task(tender=obj)
self.message_user(request, "Ce dépôt de besoin a été validé et envoyé aux structures")
api_hubspot.create_deal_from_tender(tender=obj)
if settings.BITOUBI_ENV == "prod":
api_hubspot.create_deal_from_tender(tender=obj)

return HttpResponseRedirect(".")
elif request.POST.get("_restart_tender"):
Expand Down

0 comments on commit 1563c2c

Please sign in to comment.