I'm using django's ContentType foreign key in my model, and I'm using it in the fixtures for unit tests.
Therefore, I have to hard-code content_type_id in my fixture, but django sometimes initializes it to a different value and thus my tests fail.
So is there a way to safely predict the content_type_id of the model or any other proper way to handle such situations?