you can get the rides for a rider using:

```python
teammate.ride_set.all()
```

and then filter that list