diff options
| author | Claude Paroz <claude@2xlibre.net> | 2020-01-17 20:26:36 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2020-01-17 20:26:36 +0100 |
| commit | c7b97ac3a7908dab0825f6bdb61b40f641306a8e (patch) | |
| tree | c0c11bd873f750865b59316d5e4e94b6f02a494b /docs | |
| parent | 68e018010befe78b937b0a6cf045f1a12ed26fca (diff) | |
Added missing backtick in instances docs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 6adcb979ba..43ed5934ca 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -837,7 +837,7 @@ duplicated. That also means you cannot use those methods on unsaved objects. .. admonition:: Overriding extra instance methods In most cases overriding or inheriting ``get_FOO_display()``, - ``get_next_by_FOO()``, and ``get_previous_by_FOO()` should work as + ``get_next_by_FOO()``, and ``get_previous_by_FOO()`` should work as expected. Since they are added by the metaclass however, it is not practical to account for all possible inheritance structures. In more complex cases you should override ``Field.contribute_to_class()`` to set |
