Ticket #12837: 12837.diff

File 12837.diff, 1.2 KB (added by Ramiro Morales, 15 years ago)
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    a b  
    914914~~~~~~~~~~~~~~~~~~~~~~~
    915915
    916916Behind the scenes, Django creates an intermediary join table to represent the
    917 many-to-many relationship. By default, this table name is generated using the
    918 names of the two tables being joined. Since some databases don't support table
    919 names above a certain length, these table names will be automatically
    920 truncated to 64 characters and a uniqueness hash will be used. This means you
    921 might see table names like ``author_books_9cdf4``; this is perfectly normal.
    922 You can manually provide the name of the join table using the
     917many-to-many relationship. By default, this table name is generated using both
     918the names of the many-to-many field and the model that contains it. Since some
     919databases don't support table names above a certain length, these table names
     920will be automatically truncated to 64 characters and a uniqueness hash will be
     921used. This means you might see table names like ``author_books_9cdf4``; this is
     922perfectly normal. You can manually provide the name of the join table using the
    923923:attr:`~ManyToManyField.db_table` option.
    924924
    925925.. _manytomany-arguments:
Back to Top