since there is a one to one relationship between global page perms and groups, I believe you should use <code>select_related</code>. Also, you can remove the <code>all()</code> call.