filter = [] { # Django Q object to filter list of entries utils.is_admin utils.is_sandbox } else = qobject { utils.is_sandbox qobject := [ {"id": input.auth.user.id} ] } else = qobject { org_id := input.auth.organization.id qobject := [ {"memberships__organization": org_id} ] }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter