Skip to content

Commit

Permalink
fix(EmailGroupFactory): skip post-generation save to prevent duplicat…
Browse files Browse the repository at this point in the history
…e key errors
  • Loading branch information
SebastienReuiller committed Dec 16, 2024
1 parent 83b5141 commit b63831a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/conversations/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Meta:
class EmailGroupFactory(DjangoModelFactory):
class Meta:
model = EmailGroup
skip_postgeneration_save = True # To avoid error "duplicate key" when saving TemplateTransactional factory

display_name = factory.Faker("name", locale="fr_FR")
description = factory.Faker("name", locale="fr_FR")
Expand Down

0 comments on commit b63831a

Please sign in to comment.