Unverified Kaydet (Commit) b0799f5d authored tarafından Mariusz Felisiak's avatar Mariusz Felisiak Kaydeden (comit) GitHub

Fixed documentation of database representation for ManyToManyField.

üst 5c5d4d83
...@@ -1468,10 +1468,9 @@ Behind the scenes, Django creates an intermediary join table to represent the ...@@ -1468,10 +1468,9 @@ Behind the scenes, Django creates an intermediary join table to represent the
many-to-many relationship. By default, this table name is generated using the many-to-many relationship. By default, this table name is generated using the
name of the many-to-many field and the name of the table for the model that name of the many-to-many field and the name of the table for the model that
contains it. Since some databases don't support table names above a certain contains it. Since some databases don't support table names above a certain
length, these table names will be automatically truncated to 64 characters and a length, these table names will be automatically truncated and a uniqueness hash
uniqueness hash will be used. This means you might see table names like will be used, e.g. ``author_books_9cdf``. You can manually provide the name of
``author_books_9cdf4``; this is perfectly normal. You can manually provide the the join table using the :attr:`~ManyToManyField.db_table` option.
name of the join table using the :attr:`~ManyToManyField.db_table` option.
.. _manytomany-arguments: .. _manytomany-arguments:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment