Fefactored filter restriction queryset to check account from accountuser or accountgroup