From bfcc686d22df10c268752635947dd242317ba156 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 30 Dec 2013 23:53:54 +0100 Subject: Removed the only_with_models_module argument of get_model[s]. Now that the refactorings are complete, it isn't particularly useful any more, nor very well named. Let's keep the API as simple as possible. Fixed #21689. --- docs/ref/applications.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/ref/applications.txt b/docs/ref/applications.txt index 5d9db49140..eadf9895ca 100644 --- a/docs/ref/applications.txt +++ b/docs/ref/applications.txt @@ -184,22 +184,16 @@ Application registry Returns ``True`` if the registry is fully populated. -.. method:: apps.get_app_configs(only_with_models_module=False) +.. method:: apps.get_app_configs() Returns an iterable of :class:`~django.apps.AppConfig` instances. - If only applications containing a models module are of interest, this method - can be called with ``only_with_models_module=True``. - -.. method:: apps.get_app_config(app_label, only_with_models_module=False) +.. method:: apps.get_app_config(app_label) Returns an :class:`~django.apps.AppConfig` for the application with the given ``app_label``. Raises :exc:`~exceptions.LookupError` if no such application exists. - If only applications containing a models module are of interest, this method - can be called with ``only_with_models_module=True``. - .. method:: apps.has_app(app_name) Checks whether an application with the given name exists in the registry. -- cgit v1.3