mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.9.x] Fixed typos in docs/ref/models/meta.txt.
Backport of 11a8207d4294b46561ce34b37803f191014509af from master
This commit is contained in:
parent
48cf751640
commit
46c6ac1ffc
@ -179,11 +179,11 @@ can be made to convert your code to the new API:
|
|||||||
then check if:
|
then check if:
|
||||||
|
|
||||||
- ``f.auto_created == False``, because the new ``get_field()``
|
- ``f.auto_created == False``, because the new ``get_field()``
|
||||||
API will find "reverse" relations), and:
|
API will find "reverse" relations, and:
|
||||||
|
|
||||||
- ``f.is_relation and f.related_model is None``, because the new
|
- ``f.is_relation and f.related_model is None``, because the new
|
||||||
``get_field()`` API will find
|
``get_field()`` API will find
|
||||||
:class:`~django.contrib.contenttypes.fields.GenericForeignKey` relations;
|
:class:`~django.contrib.contenttypes.fields.GenericForeignKey` relations.
|
||||||
|
|
||||||
* ``MyModel._meta.get_field_by_name(name)`` returns a tuple of these four
|
* ``MyModel._meta.get_field_by_name(name)`` returns a tuple of these four
|
||||||
values with the following replacements:
|
values with the following replacements:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user