(plugin) add CommuneCreation plugin

Add E2E test to cover the API integration, access grant &c.
This commit is contained in:
Laurent Bossavit
2025-01-27 15:23:35 +01:00
committed by Laurent Bossavit
parent 471f69d4ec
commit a68f8171cb
2 changed files with 28 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ class CommuneCreation(BaseOrganizationPlugin):
zone_name = orga.name.lower() + ".collectivite.fr"
try:
domain = MailDomain.objects.get(domain=zone_name)
domain = MailDomain.objects.get(name=zone_name)
except MailDomain.DoesNotExist:
domain = None