我们从Python开源项目中,提取了以下7个代码示例,用于说明如何使用django.apps.apps.check_models_ready()。
def related_model(self): # Can't cache this property until all the models are loaded. apps.check_models_ready() return self.remote_field.model
def related_model(self): # Can't cache this property until all the models are loaded. apps.check_models_ready() return self.rel.to