Ticket #10358: 64_not_32.diff

File 64_not_32.diff, 1.1 KB (added by deadwisdom, 6 years ago)
  • docs/ref/models/fields.txt

     
    868868Behind the scenes, Django creates an intermediary join table to represent the
    869869many-to-many relationship. By default, this table name is generated using the
    870870names of the two tables being joined. Since some databases don't support table
    871 names above a certain length (often 32 characters), these table names will be
    872 automatically truncated to 32 characters and a uniqueness hash will be used.
    873 This means you might see table names like ``author_books_9cdf4``; this is
    874 perfectly normal. You can manually provide the name of the join table using
    875 the :attr:`~ManyToManyField.db_table` option.
     871names above a certain length, these table names will be automatically
     872truncated to 64 characters and a uniqueness hash will be used. This means you
     873might see table names like ``author_books_9cdf4``; this is perfectly normal.
     874You can manually provide the name of the join table using the
     875:attr:`~ManyToManyField.db_table` option.
    876876
    877877.. _manytomany-arguments:
    878878
Back to Top