mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
a4cb140004
Refactored get_app() to rely on that method.
get_app() starts by calling _populate(), which goes through
INSTALLED_APPS and, for each app, imports the app module and attempts to
import the models module. At this point, no further imports are
necessary to return the models module for a given app. Therefore, the
implementation of get_app() can be simplified and the safeguards for
race conditions can be removed.
Besides, the emptyOK parameter isn't used anywhere in Django. It was
introduced in
|
||
---|---|---|
.. | ||
no_models | ||
__init__.py | ||
models.py | ||
tests.py |