I thought I had a MRO issue, but no, that's working with:
```python
class PolymorphicCompatibleManyToManyRawIdWidget(
    ManyToManyRawIdWidget, PolymorphicCompatibleForeignKeyRawIdWidget):
```
:)

I'll update my pull request.