def get_queryset(self, request):
    qs = super(VersionCommitAdmin, self).get_queryset(request)
    if (not request.user.is_superuser):
        sites = Site.objects.filter(sitepermission__user=request.user)
        qs = qs.filter(tracker__in=ReviewedVersionTracker.objects.filter(widgypage__site__in=sites))
    return qs
def get_queryset(self, request):
    qs = super(VersionCommitAdmin, self).get_queryset(request)
    if (not request.user.is_superuser):
        sites = Site.objects.filter(sitepermission__user=request.user)
        qs = qs.filter(tracker__in=ReviewedVersionTracker.objects.filter(widgypage__site__in=sites))
    return qs