(domain)
return ApplicationAccess.objects.get_or_create(domain=domain)[0]
There should only be one of these per domain,
     return it if found, otherwise create it.
There should only be one of these per domain,
     return it if found, otherwise create it.
There should only be one of these per domain return it if found otherwise create it .
def get_application_access_for_domain(domain):
    """
    There should only be one of these per domain,
     return it if found, otherwise create it.
    """
    return ApplicationAccess.objects.get_or_create(domain=domain)[0]
def get_application_access_for_domain ( domain ) : return ApplicationAccess . objects . get_or_create ( domain = domain ) [ 0 ]