[1.8.x] Refs #25381 -- Clarified that AppConfig model methods search only the current app.

Backport of e7e8d30cae from master
This commit is contained in:
Tim Graham 2015-09-11 14:07:12 -04:00
parent c8773493b6
commit 95c00c40ae
1 changed files with 4 additions and 3 deletions

View File

@ -204,13 +204,14 @@ Methods
.. method:: AppConfig.get_models() .. method:: AppConfig.get_models()
Returns an iterable of :class:`~django.db.models.Model` classes. Returns an iterable of :class:`~django.db.models.Model` classes for this
application.
.. method:: AppConfig.get_model(model_name) .. method:: AppConfig.get_model(model_name)
Returns the :class:`~django.db.models.Model` with the given Returns the :class:`~django.db.models.Model` with the given
``model_name``. Raises :exc:`LookupError` if no such model exists. ``model_name``. Raises :exc:`LookupError` if no such model exists in this
``model_name`` is case-insensitive. application. ``model_name`` is case-insensitive.
.. method:: AppConfig.ready() .. method:: AppConfig.ready()