We avoid using backslashes (\). You can indent this code using parenthesis:
```python
profiles = (group.groupmembership_set.filter(status__in=statuses)
                 .order_by('userprofile'))
```