diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/instances.txt | 4 | ||||
| -rw-r--r-- | docs/ref/urlresolvers.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 70b9883731..7909d9d5c6 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -680,9 +680,9 @@ For example:: def get_absolute_url(self): return "/people/%i/" % self.id -(Whilst this code is correct and simple, it may not be the most portable way to +While this code is correct and simple, it may not be the most portable way to write this kind of method. The :func:`~django.core.urlresolvers.reverse` -function is usually the best approach.) +function is usually the best approach. For example:: diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index 5bad660f48..d7e1077d85 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -73,7 +73,7 @@ use for reversing. By default, the root URLconf for the current thread is used. As part of working out which URL names map to which patterns, the ``reverse()`` function has to import all of your URLconf files and examine the name of each view. This involves importing each view function. If - there are *any* errors whilst importing any of your view functions, it + there are *any* errors while importing any of your view functions, it will cause ``reverse()`` to raise an error, even if that view function is not the one you are trying to reverse. |
