diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-06-08 23:52:43 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-06-08 23:52:43 +0300 |
| commit | a035d9d6502c824155783dd74f88912ba2dffd9b (patch) | |
| tree | 26a49bdcc05267bf75c9396740af8135af7b5e35 /docs | |
| parent | b6d533af4d03f27ea957baa5fd70f7d0b942ef9a (diff) | |
Cleaned whitespace errors introduced in previous commit
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/contenttypes.txt | 16 | ||||
| -rw-r--r-- | docs/releases/1.5.txt | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt index 1e9e21a4b7..0226435159 100644 --- a/docs/ref/contrib/contenttypes.txt +++ b/docs/ref/contrib/contenttypes.txt @@ -226,15 +226,15 @@ lookup:: .. versionadded:: 1.5 -Prior to Django 1.5 :meth:`~ContentTypeManager.get_for_model()` and -:meth:`~ContentTypeManager.get_for_models()` always returned the -:class:`~django.contrib.contenttypes.models.ContentType` associated with the -concrete model of the specified one(s). That means there was no way to retreive -the :class:`~django.contrib.contenttypes.models.ContentType` of a proxy model -using those methods. As of Django 1.5 you can now pass a boolean flag – +Prior to Django 1.5 :meth:`~ContentTypeManager.get_for_model()` and +:meth:`~ContentTypeManager.get_for_models()` always returned the +:class:`~django.contrib.contenttypes.models.ContentType` associated with the +concrete model of the specified one(s). That means there was no way to retreive +the :class:`~django.contrib.contenttypes.models.ContentType` of a proxy model +using those methods. As of Django 1.5 you can now pass a boolean flag – respectively ``for_concrete_model`` and ``for_concrete_models`` – to specify -wether or not you want to retreive the -:class:`~django.contrib.contenttypes.models.ContentType` for the concrete or +wether or not you want to retreive the +:class:`~django.contrib.contenttypes.models.ContentType` for the concrete or direct model. Generic relations diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt index 575bd8d0f8..6512560b50 100644 --- a/docs/releases/1.5.txt +++ b/docs/releases/1.5.txt @@ -72,11 +72,11 @@ tag's content. Retreival of ``ContentType`` instances associated with proxy models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The methods :meth:`ContentTypeManager.get_for_model() <django.contrib.contenttypes.models.ContentTypeManager.get_for_model()>` -and :meth:`ContentTypeManager.get_for_models() <django.contrib.contenttypes.models.ContentTypeManager.get_for_models()>` -have a new keyword argument – respectively ``for_concrete_model`` and ``for_concrete_models``. +The methods :meth:`ContentTypeManager.get_for_model() <django.contrib.contenttypes.models.ContentTypeManager.get_for_model()>` +and :meth:`ContentTypeManager.get_for_models() <django.contrib.contenttypes.models.ContentTypeManager.get_for_models()>` +have a new keyword argument – respectively ``for_concrete_model`` and ``for_concrete_models``. By passing ``False`` using this argument it is now possible to retreive the -:class:`ContentType <django.contrib.contenttypes.models.ContentType>` +:class:`ContentType <django.contrib.contenttypes.models.ContentType>` associated with proxy models. Minor features |
