-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(brevo): créer les objets dans Brevo lors de leur création en BDD #1651
Open
nicolasabrn
wants to merge
23
commits into
master
Choose a base branch
from
nicolasabrn/create-deals-on-validation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+324
−439
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e56f4b9
to
5b54e8a
Compare
7a7cab7
to
acdf3d4
Compare
632a328
to
9893ddb
Compare
9893ddb
to
bfbdb8a
Compare
0c41609
to
64f89a9
Compare
bfbdb8a
to
ee64b0b
Compare
ee64b0b
to
2bd8190
Compare
a1196e1
to
6692c86
Compare
8b9bd83
to
509b296
Compare
6692c86
to
0fb5033
Compare
b90a516
to
cdcc4d0
Compare
3959c2c
to
41b8de6
Compare
🥁 La recette jetable est prête ! 👉 Je veux tester cette PR ! |
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
…tures concernées (#1161)
954efbf
to
84605f3
Compare
84605f3
to
9d97b32
Compare
9d97b32
to
4ad29c8
Compare
Guilouf
requested changes
Feb 11, 2025
lemarche/companies/models.py
Outdated
@receiver(post_save, sender=Company) | ||
def create_company_in_brevo(sender, instance, created, **kwargs): | ||
if created: | ||
from lemarche.utils.apis.api_brevo import create_company |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il y a un problème d'import circulaire ?
lemarche/siaes/models.py
Outdated
field_name = "address" | ||
previous_field_name = f"__previous_{field_name}" | ||
if getattr(instance, field_name) and getattr(instance, field_name) != getattr(instance, previous_field_name): | ||
set_siae_coords(sender, instance) | ||
|
||
# Handle Brevo company creation | ||
if created: | ||
from lemarche.utils.apis.api_brevo import create_company |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aussi un pb d'import circulaire ?
98d72e1
to
7498885
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quoi ?
Pourquoi ?
Nous allons gérer l'ensemble des synchronisations BREVO hors produit.
Nous avons désormais uniquement besoin de créer les objets et de stocker leur ID Brevo dans le produit