mirror of
https://github.com/django/django.git
synced 2025-07-17 16:19:12 +00:00
[3.0.x] Added missing backtick in instances docs.
Backport of c7b97ac3a7908dab0825f6bdb61b40f641306a8e from master
This commit is contained in:
parent
3c05ab295d
commit
789de6050a
@ -832,7 +832,7 @@ duplicated. That also means you cannot use those methods on unsaved objects.
|
|||||||
.. admonition:: Overriding extra instance methods
|
.. admonition:: Overriding extra instance methods
|
||||||
|
|
||||||
In most cases overriding or inheriting ``get_FOO_display()``,
|
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
|
expected. Since they are added by the metaclass however, it is not
|
||||||
practical to account for all possible inheritance structures. In more
|
practical to account for all possible inheritance structures. In more
|
||||||
complex cases you should override ``Field.contribute_to_class()`` to set
|
complex cases you should override ``Field.contribute_to_class()`` to set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user