This should be pretty simple since it's very simple with pure SQL. I have the following query which gets exactly what I want in Django:
SELECT auth_group.id, auth_group.name, auth_user.username
FROM auth_group
LEFT JOIN auth_user_groups
ON auth_group.id = auth_user_groups.group_id
LEFT JOIN auth_user
ON auth_user_groups.user_id = auth_user.id
WHERE auth_user.id = 3
OR auth_user.id IS NULL;
How can I get this result using the ORM properly?