Ticket #18046: 18046.diff

File 18046.diff, 711 bytes (added by Tim Graham, 6 years ago)
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    index 02d8453..809d56e 100644
    a b need to use:: 
    971971This sort of reference can be useful when resolving circular import
    972972dependencies between two applications.
     974A database index is automatically created on the ``ForeignKey``. You can
     975disable this by setting :attr:`~Field.db_index` to ``False``.  You may want to
     976avoid the overhead of an index if you are creating a foreign key for
     977consistency rather than joins, or if you will be creating an alternative index
     978like a partial or multiple column index.
    974980Database Representation
Back to Top