🗃️(domains) add "secret" field to domains

add a "secret" field to domain model. This secret will be used as
password in mail provisioning API.
This commit is contained in:
Marie PUPO JEAMMET
2024-08-05 12:13:13 +02:00
committed by Marie
parent 8963f0bb3d
commit 2c82f38c59
3 changed files with 20 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ class MailDomainFactory(factory.django.DjangoModelFactory):
name = factory.Faker("domain_name")
slug = factory.LazyAttribute(lambda o: slugify(o.name))
secret = factory.Faker("password")
@factory.post_generation
def users(self, create, extracted, **kwargs):