Ticket #16580: 16580.diff

File 16580.diff, 699 bytes (added by BernhardEssl, 4 years ago)
  • docs/ref/models/querysets.txt

    672672...and would also pull in the ``building`` relation.
    674674You can refer to any ``ForeignKey`` or ``OneToOneField`` relation in
    675 the list of fields passed to ``select_related``. Ths includes foreign
     675the list of fields passed to ``select_related``. This includes foreign
    676676keys that have ``null=True`` (unlike the default ``select_related()``
    677677call). It's an error to use both a list of fields and the ``depth``
    678678parameter in the same ``select_related()`` call, since they are
Back to Top