diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-30 23:53:54 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-30 23:59:34 +0100 |
| commit | bfcc686d22df10c268752635947dd242317ba156 (patch) | |
| tree | 83220d8f86a7c0589d8754f7577bced3d8fd0655 /docs | |
| parent | ec020cab7ef4b1943a8fe9a4d6872f7e874db707 (diff) | |
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.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/applications.txt | 10 |
1 files changed, 2 insertions, 8 deletions
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. |
