You can also write this as
```python
prog.sections().filter(status__gte=0, parent_class__in=grade_classes)
```

Otherwise, I think you want to add an ```parent_class__status__gte=0``` condition.