Implement support for __contains and __icontains, fix a bunch of issues with proxy models and custom PK fields