Ticket #27511: 27511.diff

File 27511.diff, 721 bytes (added by Tim Graham, 7 years ago)
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    index c50f09b..e318b61 100644
    a b have boolean values (rather than ``None``) if the field is a relation type  
    20072007.. attribute:: Field.related_model
    20082008
    20092009    Points to the model the field relates to. For example, ``Author`` in
    2010     ``ForeignKey(Author, on_delete=models.CASCADE)``. If a field has a generic
    2011     relation (such as a ``GenericForeignKey`` or a ``GenericRelation``) then
    2012     ``related_model`` will be ``None``.
     2010    ``ForeignKey(Author, on_delete=models.CASCADE)``. If a field is a generic
     2011    ``GenericForeignKey``, then ``related_model`` will be ``None``.
Back to Top