Fixed typos in docs/ref/models/meta.txt.

This commit is contained in:
Taranjeet 2016-03-01 15:07:22 +05:30 committed by Tim Graham
parent 65bd053f11
commit 11a8207d42
1 changed files with 2 additions and 2 deletions

View File

@ -156,11 +156,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: