Lutger/django-cacheops — comment on commit b2eb3923dbfd01f8d092ad10018cccfee98d9cc4
File:  line 0
By Lutger:

Possibly, it's definitely related to Suor/django-cacheops#3 and Suor/django-cacheops#4. I've noticed you have fixed the m2m issue already though.

I'll try to come up with a reduced example of where this can go wrong. It's not really a bug in cacheops itself, but in some codebases cyclic dependencies between modules can creep in. Sometimes these cycles depend on the order of the imports in installed apps, the change in this commit ensures that cacheops post installation is executed in that very same order. See: https://github.com/django/django/blob/master/django/db/models/loading.py#L124