Added condition in container get_queryset to avoid NoneType error trying call get_queryset method