def get_site_list(self, request):
    if (not hasattr(request, '_site_list')):
        request._site_list = Site.objects.filter(sitepermission__user=request.user)
    return request._site_list
def get_site_list(self, request):
    if (not hasattr(request, '_site_list')):
        request._site_list = Site.objects.filter(sitepermission__user=request.user)
    return request._site_list