(self)
| 260 | yield model |
| 261 | |
| 262 | def import_models(self): |
| 263 | # Dictionary of models for this app, primarily maintained in the |
| 264 | # 'all_models' attribute of the Apps this AppConfig is attached to. |
| 265 | self.models = self.apps.all_models[self.label] |
| 266 | |
| 267 | if module_has_submodule(self.module, MODELS_MODULE_NAME): |
| 268 | models_module_name = "%s.%s" % (self.name, MODELS_MODULE_NAME) |
| 269 | self.models_module = import_module(models_module_name) |
| 270 | |
| 271 | def ready(self): |
| 272 | """ |
no test coverage detected