diff options
| author | Tim Graham <timograham@gmail.com> | 2012-12-25 09:56:22 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-12-26 19:10:50 -0500 |
| commit | fbc06eef1af1d7ecf91fae5a94a1994f356ffd22 (patch) | |
| tree | 0d45acf4eecae06ddc205ffc8b23b11dcb4896b9 /docs/ref/models | |
| parent | e2396bf1220c543ee8d15c7640481889caace61d (diff) | |
[1.5.X] Fixed broken links, round 3. refs #19516
Backport of b3a8c9dab8 from master
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 5 | ||||
| -rw-r--r-- | docs/ref/models/instances.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/querysets.txt | 14 |
3 files changed, 10 insertions, 11 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index a33c985e2c..45a70c66e3 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -547,8 +547,7 @@ Also has one optional argument: Optional. A storage object, which handles the storage and retrieval of your files. See :doc:`/topics/files` for details on how to provide this object. -The default form widget for this field is a -:class:`~django.forms.widgets.FileInput`. +The default form widget for this field is a :class:`~django.forms.FileInput`. Using a :class:`FileField` or an :class:`ImageField` (see below) in a model takes a few steps: @@ -590,7 +589,7 @@ topic guide. saved. The uploaded file's relative URL can be obtained using the -:attr:`~django.db.models.fields.FileField.url` attribute. Internally, +:attr:`~django.db.models.FileField.url` attribute. Internally, this calls the :meth:`~django.core.files.storage.Storage.url` method of the underlying :class:`~django.core.files.storage.Storage` class. diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 6315985ba9..4479e4b766 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -659,7 +659,7 @@ For every :class:`~django.db.models.DateField` and <django.db.models.Field.null>`, the object will have ``get_next_by_FOO()`` and ``get_previous_by_FOO()`` methods, where ``FOO`` is the name of the field. This returns the next and previous object with respect to the date field, raising -a :exc:`~django.db.DoesNotExist` exception when appropriate. +a :exc:`~django.core.exceptions.DoesNotExist` exception when appropriate. Both methods accept optional keyword arguments, which should be in the format described in :ref:`Field lookups <field-lookups>`. diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index a19d022c58..ca2e64a8c5 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -1112,9 +1112,9 @@ one, doing so will result in an error. .. note:: - When calling :meth:`~Model.save()` for instances with deferred fields, - only the loaded fields will be saved. See :meth:`~Model.save()` for more - details. + When calling :meth:`~django.db.models.Model.save()` for instances with + deferred fields, only the loaded fields will be saved. See + :meth:`~django.db.models.Model.save()` for more details. only @@ -1164,9 +1164,9 @@ using :meth:`select_related` is an error as well. .. note:: - When calling :meth:`~Model.save()` for instances with deferred fields, - only the loaded fields will be saved. See :meth:`~Model.save()` for more - details. + When calling :meth:`~django.db.models.Model.save()` for instances with + deferred fields, only the loaded fields will be saved. See + :meth:`~django.db.models.Model.save()` for more details. using ~~~~~ @@ -1248,7 +1248,7 @@ the format described in `Field lookups`_. ``get()`` raises :exc:`~django.core.exceptions.MultipleObjectsReturned` if more than one object was found. The -:exc:`~django.core.excpetions.MultipleObjectsReturned` exception is an +:exc:`~django.core.exceptions.MultipleObjectsReturned` exception is an attribute of the model class. ``get()`` raises a :exc:`~django.core.exceptions.DoesNotExist` exception if an |
