diff options
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index fe87365783..cebd893ee9 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -539,7 +539,7 @@ takes a few steps: (relative to :setting:`MEDIA_ROOT`). You'll most likely want to use the convenience :attr:`~django.core.files.File.url` function provided by Django. For example, if your :class:`ImageField` is called ``mug_shot``, - you can get the absolute URL to your image in a template with + you can get the absolute path to your image in a template with ``{{ object.mug_shot.url }}``. For example, say your :setting:`MEDIA_ROOT` is set to ``'/home/media'``, and diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 6ab65b03cb..88fd4e1fac 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -491,7 +491,7 @@ Similarly, if you had a URLconf entry that looked like:: Notice that we specify an empty sequence for the second parameter in this case, because we only want to pass keyword parameters, not positional ones. -In this way, you're tying the model's absolute URL to the view that is used +In this way, you're tying the model's absolute path to the view that is used to display it, without repeating the URL information anywhere. You can still use the ``get_absolute_url`` method in templates, as before. |
