You can use `User.attempts_in_progress` for this:

```python
if self.request.user.attempts_in_progress.exists():
```