diff --git a/lemarche/conversations/factories.py b/lemarche/conversations/factories.py index 24014abb4..1b8c073fe 100644 --- a/lemarche/conversations/factories.py +++ b/lemarche/conversations/factories.py @@ -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")