Update model cache clearing to be compatible with Django 1.7.
 -- not thoroughly investigated, but seems to work...
Merge pull request #519 from DrMeers/next

Update model cache clearing to be compatible with Django 1.7.