Source: apps/search_console_tools/models.py.
π― Purpose
DomainAccountMapping maps a root domain to an account.
Used by the API when the client does not provide account_email.
β Validation
clean() performs:
- normalization (
trim+lowercase) - domain format validation
- βroot domain onlyβ enforcement (no subdomains)
π Automatic updates
After a successful get_account_domains completion:
- signal
update_domain_account_mappingsparsesCommandRequest.result - creates/updates
DomainAccountMappingfor each returned domain